Jump to content
Fesler

Set The Co-pilot to observe only

Recommended Posts

I have a mission I'm building where the copilot of a helicopter is the player and is just along for the ride. The pilot can't let him take control.

 

I know of copilot enable and suspend vehicle control commands. But I don't know how to make them work or if I even need that. I just need to prevent the player from taking the controls. 

 

I tried:

 

player action ["SuspendVehicleControl", vehicle player];

 

Doesn't seem to work.

I thought about temporarily disable input but I want to be able to look around the cockpit.

 

Any tips?

Share this post


Link to post
Share on other sites
22 minutes ago, Fesler said:

I have a mission I'm building where the copilot of a helicopter is the player and is just along for the ride. The pilot can't let him take control.

 

I know of copilot enable and suspend vehicle control commands. But I don't know how to make them work or if I even need that. I just need to prevent the player from taking the controls. 

 

I tried:

 

player action ["SuspendVehicleControl", vehicle player];

 

Doesn't seem to work.

I thought about temporarily disable input but I want to be able to look around the cockpit.

 

Any tips?

 

Try one of these, the first is sufficient for SP.

//In init of editor placed vehicle:
this enableCopilot false;

//in MP, executed on server:
[veh, false] remoteExec ["enableCopilot", 0, veh];

 

  • Like 1

Share this post


Link to post
Share on other sites

Thank you! It worked. I had tried all kinds of codes before. Just one hurdle among many to build a mission.

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

×