OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: EchoTwoZero on 27 Apr 2010, 23:18:40

Title: TurnOut Command
Post by: EchoTwoZero on 27 Apr 2010, 23:18:40
Hopefully someone can help me with this!

Im trying to make a mission where the player is a driver in a tank and as soon as the mission starts, they turn out. (they are the only person in the tanl, no AI)
I've got it working so they start in the tank, but I cant seem to get the command for turn out working.

The tank is named tank1, and the played is moved into it with the 'this moveindriver tank1' code.

Cheers in advance!
Title: Re: TurnOut Command
Post by: Loyalguard on 27 Apr 2010, 23:47:49
I assume you are using this syntax:

Code: [Select]
player action ["TURNOUT", vehicle player];
That being said, maybe a silly question: Can a tank driver turnout?
Title: Re: TurnOut Command
Post by: EchoTwoZero on 28 Apr 2010, 19:54:41
Yeah the tank drive can turn out, and normally I would just assign it to a keypress but this part is meant to be scripted and happen with a trigger.

I tried the player action ["TURNOUT", vehicle player]; but cant seem to get it working.
Its probably something really stupid on my part!
Title: Re: TurnOut Command
Post by: h- on 29 Apr 2010, 08:51:04
Are you sure the tank driver can turn out?

Because not one of the vanilla game tanks allow that if you start as a driver. You can only turn out as a driver if you start as a commander and switch to the driver seat.

You can't "play" actions that can't be used..
Title: Re: TurnOut Command
Post by: Wolfrug on 29 Apr 2010, 13:43:48
You could try making sure the player is set to "safe" (either setbehaviour or a waypoint), then he should be turned out by default from the start. Works with a full tank, at least...

Wolfrug out.