03CF: load_wav 17802 as 1Vennom link said:Ok, but how can i play a sound if someone hit me
03CF: load_wav 17802 as 1TH3RM4L link said:[quote author=Vennom link=topic=8310.msg47814#msg47814 date=1405328982]
Ok, but how can i play a sound if someone hit me
051A: actor 1@ damaged_by_actor $PLAYER_ACTOR
Thank youTH3RM4L link said:{$CLEO .cs}
0000: NOP
:SOUND
wait 0
if or
031D: actor $PLAYER_ACTOR hit_by_weapon 49
031D: actor $PLAYER_ACTOR hit_by_weapon 50
031D: actor $PLAYER_ACTOR hit_by_weapon 51
031D: actor $PLAYER_ACTOR hit_by_weapon 52
031D: actor $PLAYER_ACTOR hit_by_weapon 53
031D: actor $PLAYER_ACTOR hit_by_weapon 54
031D: actor $PLAYER_ACTOR hit_by_weapon 56
031D: actor $PLAYER_ACTOR hit_by_weapon 57
jf @SOUND
054E: clear_actor $PLAYER_ACTOR damage
03CF: load_wav 17802 as 1
03D1: play_wav 1
goto @SOUND