OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BoT on 21 Dec 2004, 17:34:29

Title: Count
Post by: BoT 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?
Title: Re:Count
Post by: THobson 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
Title: Re:Count
Post by: bored_onion 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