OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: raymond6751 on 15 Jun 2004, 22:51:46

Title: triggers
Post by: raymond6751 on 15 Jun 2004, 22:51:46
I need to have a way to determine which type of unit has triggered a trigger.  I don't mean EAST/WEST but whether infantry, tank, or aircraft.

The problem is air units triggering them prematurely.  If anyone knows the script commands, please respond.
Title: Re:triggers
Post by: Wallas on 16 Jun 2004, 12:59:50
I donÂ't think I will help you much, but I think it is something like "Class". I know it is used in Oficial mission Camel Attack, but now I am sitting at schoolÂ's computer, so I have no sources here...
Title: Re:triggers
Post by: Blanco on 16 Jun 2004, 16:52:35
Try

Code: [Select]
ACTIVATION : WEST

CONDITION : this && ("man" counttype thislist > 0 OR "tank" counttype thislist > 0 OR "car" counttype thislist < 0)

Only west troops,tanks or cars can activate the trigger.