OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: maxim on 16 Sep 2004, 14:35:21
-
? (_this select 1 == carsalesman) : _house = carhouse; goto "chairmake"
? (_this select 1 != carsalesman) : goto "exit"
#chairmake
_obj = "Chair" CreateVehicle [0,0,0]
_distance = 5
_dir = getDir _house
_xpos = getPos _house select 0 - (_distance * cos _dir)
_zpos = getPos _house select 1 + (_distance * sin _dir)
_ypos = 0
_obj setPos [_xpos,_zpos,_ypos]
exit
#exit
exit
-
this seems to be wrong:
? (_this select 1 != carsalesman) : goto "exit"
I think it should be like this:
?! (_this select 1 == carsalesman) : goto "exit"
try this ;) I hope this helps.
-
Is carsalesman a string value within the array? If so then you need quotes:
? (_this select 1 == "carsalesman") : _house = carhouse; goto "chairmake"
? (_this select 1 != "carsalesman") : goto "exit"