Home   Help Search Login Register  

Author Topic: Count  (Read 421 times)

0 Members and 2 Guests are viewing this topic.

BoT

  • Guest
Count
« on: 21 Dec 2004, 17:34:29 »
I need to count untis in trigger, who are owned by east side. Please, help me to create a script.

And i need some information about AddEventHandler (killed). Where can i find it?

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Count
« Reply #1 on: 21 Dec 2004, 19:00:31 »
trigger when east is present.  Give the trigger a name - say TrigEast.

Then:
count list TrigEast

will give you what you want.

syntax not guaranteed.

On addEventHandler

Look in Editors Dept/Online References/Commands
« Last Edit: 21 Dec 2004, 19:05:28 by THobson »

bored_onion

  • Guest
Re:Count
« Reply #2 on: 21 Dec 2004, 19:25:44 »
yeah tutorial is the best for eventhandlers
although basic syntax is:

Code: [Select]
unit addeventhandler ["typeofevent",{thing to do}]
the type of the event can be loads of stuff like "fired","hit", "killed" and it is a very useful device