OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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
-
yeah tutorial is the best for eventhandlers
although basic syntax is:
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