Greetings,
Any idea what might be the cause of set_trigger_result operation not overriding the damage for ti_on_agent_hit trigger if the damage was inflicted using melee weapon? It works fine for ranged damage. I was fiddling around with multiple placement combinations (both at the top of the code and at the very bottom etc) of set_trigger_result with various different values for at least 3 hours now yet without success. I can even put a solid 500 damage as a param and only ranged weapon damage gets overridden. Am I missing something or is there some black magics involved in that specific trigger that I still haven't figured out for years (since I didn't need to override melee damage earlier) or could that be an engine bug of some sort?
I won't show you the actual script since it's pointless (and I would rather avoid it) because I even tried removing everything from it and leaving only the basic stuff (params) + set_trigger_result to make sure it wasn't caused by my poorly written code. Also - I'm using all of the ti_on_gent_hit trigger params, agent_set_damage_modifier isn't a viable workaround option in that specific case I need to override the melee damage for.
Thank you in advance.
Any idea what might be the cause of set_trigger_result operation not overriding the damage for ti_on_agent_hit trigger if the damage was inflicted using melee weapon? It works fine for ranged damage. I was fiddling around with multiple placement combinations (both at the top of the code and at the very bottom etc) of set_trigger_result with various different values for at least 3 hours now yet without success. I can even put a solid 500 damage as a param and only ranged weapon damage gets overridden. Am I missing something or is there some black magics involved in that specific trigger that I still haven't figured out for years (since I didn't need to override melee damage earlier) or could that be an engine bug of some sort?
I won't show you the actual script since it's pointless (and I would rather avoid it) because I even tried removing everything from it and leaving only the basic stuff (params) + set_trigger_result to make sure it wasn't caused by my poorly written code. Also - I'm using all of the ti_on_gent_hit trigger params, agent_set_damage_modifier isn't a viable workaround option in that specific case I need to override the melee damage for.
Thank you in advance.