OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penfolde on 22 Mar 2005, 17:28:01
-
Ello back again with a new question,
I have amap with a lot og gates on the map and it causes problem with A.I drive into them. I did go round greating trippers to open close the gates but in multiplayer mode this cause lag, so i have decided to make one big trigger which referes to a script that just open's all the gate at the beginning of the game.
the origanel commandes in the trigger was "expActiv="object 59907 animate [""Component02"", 1]; object 59908 animate [""Component02"", 1]";".
In the script i want to write do i just list everything after and including the object command???
Penfolde
-
Dunno if this is what you want but... maybe it is. Define an array with all the gates in it and then open them all at once.
opengates.sqs
_gates = [object 123,object 234,object 345]
{_x animate ["Component02", 1]} forEach _gates
-
i'll give that ago,
Thx