Jump to content
Sign in to follow this  
ihatecheaters

How to forbid ai to get out of heavely damadged vehicle? noob needs help pls

Recommended Posts

I think none of those will work, even enablesimulation won't work.

The best I ever came up with is either just kill the crew when damage gets to a certain amount or vehicle can't move or Use an eventhandler to force them back in if they try to get out.

The Eventhandler works well enough for the driver but as there's no easy way to get the gunners position you have to shove them into cargo.

Place this in the vehicles init

this addEventHandler ["GETOUT",{_this select 2  moveindriver (_this select 0);_this select 2  moveincargo (_this select 0); } ]

Share this post


Link to post
Share on other sites

Put into the init line of the vehicle:

this [url="http://community.bistudio.com/wiki/allowCrewInImmobilehttp://"]allowcrewinimmobile[/url] true;

Or for all vehicles at once by a trigger with:

zero x,y axis

activation once

condition: true

code: {_x allowcrewinimmobile true} forEach allvehicles;

Edited by RogueTrooper

Share this post


Link to post
Share on other sites

Nice find RogueTrooper when was that command added, is there a current up to date list of commands as the OFPEC site is missing quite a few these days.

It doesn't work in all situations but for damage it seems OK.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Cheers I haven't done much since 1.60.

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  

×