Jump to content
Sign in to follow this  
DodgyGeeza

Only a specific character (pilot) can drive

Recommended Posts

Is there a way to make itt hat only a specific character in a multiplayer coop mission is allowed to pilot an aircraft (in this case a helicopter) and only allow other players to get in as cargo?

Thanks

Share this post


Link to post
Share on other sites

You could give each unit a GetIn EventHandler, and if they get into an unauthorized position, kick them out via a GetOut action.

Share this post


Link to post
Share on other sites

Give the Helicopter a name. ( Helicopter )

Create a Trigger:

A: 0

B: 0

Activation:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

None Repeatly

Condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

!isNull driver Helicopter

On Activation:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

if !(driver Helicopter isKindOf "SoldierWPilot") then {driver Helicopter action ["Eject", Helicopter]};

Now every unit which will fly the Helicopter and not is a West Pilot get ejected from the Helicopter.

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  

×