Home   Help Search Login Register  

Author Topic: Problems running a script (errors)  (Read 961 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Problems running a script (errors)
« 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;

Quote
_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.
« Last Edit: 28 Feb 2009, 18:35:22 by NightJay0044 »
Who's hyped for Arma4, long live Arma!

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Problems running a script (errors)
« Reply #1 on: 28 Feb 2009, 20:55:16 »
use moveindrive and moveincargo.  In is not what you think it is, its used to check if something is 'in' a list/array.

Xbox Rocks