OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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...
-
Try
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.