Jump to content
NesHoch

How i do make ai Open Hatches While in an tank?

Recommended Posts

Oh I missed the AI part in the title.  Are you also in the vehicle with the AI or not?  If not: set the AI to carless or safe, if you are, get in the commander seat and turn out (or set the AI to carless or safe, will also work if you're in the vehicle)

Share this post


Link to post
Share on other sites

I want to be driver and commander open hatch and if vehicle is attacked he close hatch

 

Share this post


Link to post
Share on other sites

Hi friends,
put this in the init of a vehicle/tank:

this addEventHandler ["Fired", {params ["_unit"]; _unit setCombatBehaviour "AWARE";}];
0 = this spawn {while {count crew _this > 0} do {if (behaviour _this != "COMBAT") then {_this setCombatBehaviour "CARELESS";}; sleep 1;};};

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

×