Jump to content
Sign in to follow this  
jamez_5

AI respawn and Hit Noise

Recommended Posts

Hey guys. I have found many lines of codes to players respawn but I want an AI to respawn on death. I found how to make my vehicles respawn and that was super quick. I want when an AI dies he respawns at the spot or death or his initial respawn. Also I want to add a noise if target is hit. 

 

For being hit i am using:

 

this addEventHandler ["Hit", {targetHit  = "Orange"}];this setObjectTexture [0,'#(argb,8,8,3)color(0.6,0.3,0,1)'];      ----this is a code I found and cant figured out how to remove the color change and keep the hit detection. 

 

  and in the trigger condition using : !(isnil "targetHit")

 

but this does not work with multiple AI targets. Also I set the trigger to repeatable but the noise will only play once. 

 

Thanks in advance

Share this post


Link to post
Share on other sites

Just want to refresh to get some fresh eyes on my post. I am still lost at this. 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×