Jump to content
Sign in to follow this  
BEAKSBY

How to prevent AI from ejecting

Recommended Posts

HI ALL,

How do I keep my AI from ejecting from a plane?

I don't see the opposite of the following?

soldierOne action ["Eject", vehicle soldierOne];

Share this post


Link to post
Share on other sites

You can add an eventHandler to the plane that detects when someone tries to get out, and put them back in again or delete them or whatever.

			nameofplane addeventhandler ["getout",{
			_vehicle = _this select 0;
               _position = _this select 1;
			_unit = _this select 2;
               if (_position == "DRIVER") then {
			        _unit moveinDriver _vehicle;
               } else {
                       _unit moveinCargo _vehicle;
               }:            
		}];

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  

×