Jump to content
Sign in to follow this  
Kydoimos

Disable Eject

Recommended Posts

Is there a way to disable the 'eject' option in a vehicle?

Share this post


Link to post
Share on other sites

Unfortunatly you cannot remove those predefined action. If you want a player to remain inside a vehicle for a period of time you could script it.

playerMustStayInVehicle = true;
while { playerMustStayInVehicle } do
{
if(vehicle player != thevehicle)
{
	player moveInDriver thevehicle;
};
       sleep 1;
};

And you can set to false when the check should stop.

Share this post


Link to post
Share on other sites

I think there are a couple of errors.

playerMustStayInVehicle = true;

while { playerMustStayInVehicle } do then

{

if(vehicle player == player)

{

player moveInDriver thevehicle;

};

sleep 1;

};

also I'd use waituntil because if the script has started the 1 sec sleep it will take that long before putting you back in.

playerMustStayInVehicle = true;
while { playerMustStayInVehicle } do
{
   waituntil {vehicle player == player};
     player moveInDriver thevehicle;
        sleep 1;
};

Share this post


Link to post
Share on other sites

oh, but I noticed on the new Beta missions that when you're in a helicopter you can't eject? Is that because they've used the script above?

Share this post


Link to post
Share on other sites

It may be because they have no chutes, if that's the case then maybe if you can remove the chutes that will remove the action.

Share this post


Link to post
Share on other sites

you don't need the then behind the do.

Your waiuntil does the same as my function with the difference that your's checks if the player is IN a vehicle where mine checks if it's in the specified vehicle.

And waituntil is a bigger performance hit (atleast that's whay I read somewhere I believe) that's why I check each second.

Share this post


Link to post
Share on other sites

Ha - Can't believe it. So simple. On the unit screen you just select vehicle - locked. Easy!

---------- Post added at 12:53 ---------- Previous post was at 12:52 ----------

It's okay SaMatra, I was trying to make it so I could NOT eject. Didn't realise there was an option on the unit screen to lock the vehicle. Doh! :p

Share this post


Link to post
Share on other sites

You cannot eject from a pilot/co-pilot/gunner seat of a chopper in A3 (as of this post).

Share this post


Link to post
Share on other sites

That was me I placed it after the do it should be after the == player) corrected now.

One or two waituntils shouldn't have much impact overall.

It all depends on weather you want a short deleay in exiting and being placed back.

Same thing could also be done using eventhandlers.

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  

×