Jump to content
Sign in to follow this  
derSerge

"If under fire" script

Recommended Posts

Hi,

Is there a way to "ask" whether an AI is "under fire" or not?

E.g. a function that returns a true if a unit is being shot at.

Or an event that triggers if an enemy bullet hits near the unit?

Can't find the proper command on BIS wiki...

Share this post


Link to post
Share on other sites

I don't think there's one for handling being shot at, but you can use the Hit or HandleDamage event handler to detect if a unit has been shot.

You can also use the FiredNear handler to detect when a unit fires near another unit. Never tested this but assuming it works this will probably let you determine when a unit's group is returning fire.

http://community.bistudio.com/wiki/ArmA_2:_Event_Handlers

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  

×