My trigger_damage wont work.
It works with knife, nades, flash.. But not if i shoot on it.
http://www.youtube.com/watch?v=u2J1qE51vyM
http://s14.directupload.net/images/130422/zi2ufhig.jpg
has anyone an idea?
btw.. sorry for my bad english

Moderator: Core Staff
Code: Select all
******* script runtime error *******
pair '50' and 'entity' has unmatching types 'int' and 'object': (file 'maps/mp/_collectiums.gsc', line 481)
if (user==level.userr) level.hit=true;
*
Error: started from:
(file 'maps/mp/_collectiums.gsc', line 480)
target4trig waittill("damage",user);
Error: ************************************
dvar set com_errorTitle Error
dvar set com_errorMessage script runtime error
(see console for details)
pair '50' and 'entity' has unmatching types 'int' and 'object'
Could not find menu 'main'
******* script runtime error *******
cannot cast undefined to bool: (file 'maps/mp/_collectiums.gsc', line 481)
if (user==level.userr) level.hit=true;
*
Error: started from:
(file 'maps/mp/_collectiums.gsc', line 480)
target4trig waittill("damage",user);
Error: ************************************
What he means is that only when the damage(one shot, not accumulative) applied is above 50, then the trigger will be triggered. This would for example mean that if regular pistol bullets deal less than 50dmg you won't be able to trigger this at all.Btw, that 50 means that the trigger is detecting 50 dmg.
You're right, my mistake. Edited my post to use the proper term.megazor wrote:I think Rezil is mistaken. Damage triggers are different from hurt triggers. The 'dmg' thing is only supposed for hurt triggers and determines how much it hurts entities on one frame; for damage triggers you should use the key 'threshold'.
But by default, triggers should respond on any damage.
Done.. Wont work..Drofder2004 wrote: sorry.
trigger waittill ("damage", idamage, user)
Done.. Wont work..Rezil wrote:You could try adding a threshold value to the enitity in radiant:
key: threshold
value: 10
Users browsing this forum: No registered users and 2 guests