OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: NightJay0044 on 28 Feb 2009, 18:29:29
-
Greetings again,
How do I do this with this script I have? I know I got the right idea, it's just there is always a little something I'm doing wrong..
Here's the script;
_E2 = _this select 0
_E3 = _this select 1
GetIn
~3
[Player, _E2, _E3] in "Car1"
~4
Player say "Music"
~4
Player say "static"
~4
Player PlayMusic "GetArond"
Exit
The problem is the I get the error code with the "in" command. So the script runs when the soldiers are outside the jeep, I don't want the script outside the jeep only when the soldiers are inside the jeep.
As you can see my goal was as 2 soldiers and you board this jeep, the player will say "how about some music"
Then play static noise then the song on the way to the next objective.
What needs to be fixed or changed in there?
Thanks.
-
use moveindrive and moveincargo. In is not what you think it is, its used to check if something is 'in' a list/array.