OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started 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!
-
I assume you are using this syntax:
player action ["TURNOUT", vehicle player];
That being said, maybe a silly question: Can a tank driver turnout?
-
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!
-
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..
-
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.