Home   Help Search Login Register  

Author Topic: what the best way?  (Read 617 times)

0 Members and 1 Guest are viewing this topic.

Offline penfolde

  • Members
  • *
  • chaos, disorder and mayhem....my work is done!
what the best way?
« 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

AK-Chester

  • Guest
Re:what the best way?
« Reply #1 on: 22 Mar 2005, 19:05:22 »
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
Code: [Select]
_gates = [object 123,object 234,object 345]
{_x animate ["Component02", 1]} forEach _gates

Offline penfolde

  • Members
  • *
  • chaos, disorder and mayhem....my work is done!
Re:what the best way?
« Reply #2 on: 22 Mar 2005, 19:10:21 »
i'll give that ago,

Thx