Jump to content
Sign in to follow this  
Kydoimos

Ambientanimcombat Function

Recommended Posts

Hi all - is there a way to get AI to respond to shots fired near them while they are in the ambientanimcombat function? I think I have a script that enables them to respond to getting wounded, but they do seem to be oblivious to everything around them! :p I'm not desperate for an answer, but it would be cool to know!

Share this post


Link to post
Share on other sites
[this,"WATCH","ASIS",{_this knowsAbout player > 0.5}] call BIS_fnc_ambientAnimCombat;

Share this post


Link to post
Share on other sites

Cool - thanks Cobra, very helpful - I'll give that a go!

Share this post


Link to post
Share on other sites

You can also check if the unit has been damaged.

[this,"WATCH","ASIS",{_this knowsAbout player > 0.5 || getDammage _this > 0.1}] call BIS_fnc_ambientAnimCombat;

Share this post


Link to post
Share on other sites

Ah mate - works beautifully - cheers!

Share this post


Link to post
Share on other sites

Anybody have a way to get this to work with gunlights? Any gunlights forced on with enableGunLights are switched off by ambientAnimCombat. If I call it after the animation it just ignores it.

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  

×