Home   Help Search Login Register  

Author Topic: Scripting a mock "Anybody" trigger.  (Read 567 times)

0 Members and 1 Guest are viewing this topic.

meestellebunde

  • Guest
Scripting a mock "Anybody" trigger.
« on: 26 Jun 2003, 20:28:12 »
Reading Johan Gustafsson's tutorial on scripting, I came across the "INZONE" script that  basically acts like a "vehicle present" trigger. I can't figure out how to make it so that the script is activated if ANYBODY is present, without actually using triggers.

Can anyone help?

meestellebunde

  • Guest
Re:Scripting a mock "Anybody" trigger.
« Reply #1 on: 26 Jun 2003, 20:56:46 »
Basically, I'm looking for a way to do this: (Although the line of script won't work until I find a way of representing "ANYBODY"

@(ANYBODY distance _Centre) <50

etc etc

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Scripting a mock "Anybody" trigger.
« Reply #2 on: 26 Jun 2003, 21:14:43 »
da prob is dat u wil still need 2 make array of all da units :P (nd da best way 2 do dat is... guess... yep nybody triger ::) :P)

den wen u got arramyt of all unit ur condition wil b

@"(_X distance _Centre) <50" count UnitsArray > 0

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta