createTrigger

From Bohemia Interactive Community
Revision as of 01:25, 6 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


createTrigger [type, position]


Operand types:

[type, position]: Array

Type of returned value:

Object

Compatibility:

Version 1.86 required.

Description:

Creates a new trigger on the given position.

An object of the given type is created; this type must be a class name in CfgNonAIVehicles or CfgVehicles with simulation=detector.


Example:

trigger = createTrigger ["EmptyDetector", position player ]