I’m trying to use line trace to damage the actor that line trace hits, but the damage is 0.0. Using print string, I checked that the actor is correct.
Is the float type variable 0 when it’s set to something else previously (or by default), or is the value correct but the damage is not applied?
If you mean Base_Damage variable, its correct. And also even if I will enter damage value manually its still returning 0 damage
Can you clarify what you mean by that? You mean even though you set it’s value to say, 100, it’s printed as 0? Or do you mean the return value of the apply damage function by that?
Additionally, is this an online multiplayer game and the issue on the client side? I think not but wanned to ask anyway just in case.
I’m sorry if I didn’t describe the problem as I should. I mean, even if I enter a damage value such as 100, the object that should be damaged does not react to it using event any damage. And no, my project is not multiplayer and should not be replicated. Here are a screenshot of actor that need to be damaged:
It’s a relief to hear that the variable’s value is set successfully it would be such a pain to find out what was overriding it if it didn’t.
Now since we got that cleared up, can you provide these infos by debugging further:
- Does the Event Any Damage get triggered at all?
- What it outputs as damage?
Nope, Any Damage doesnt trigger, I checked it with Print String.
If you mean Apply Damage output named “Return Value”, then its returning 0,0.
Print the Display Name of the actor that you are hitting. Are you hitting what you’re supposed to?
Wait, I just figured out. I was launching it on client! I chenged it to standalone and it worked! thanks to all your responses
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.