createTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|CREATETRIGGER]]
[[Category:Scripting Commands ArmA|CREATETRIGGER]]


<new command not populated>


<h2 style="color:#000066">''' createTrigger ''[type, position]'''''</h2>


<h2 style="color:#000066">''''' createTrigger '''''</h2>


'''Operand types:'''


'''Operand types:'''
'''[type, position]:''' [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Object]]


'''Compatibility:'''
'''Compatibility:'''
Version 1.86 required.


'''Description:'''
'''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:'''
'''Example:'''
trigger = '''createTrigger''' ["EmptyDetector", [[position]] [[player]] ]

Revision as of 01:25, 6 July 2006


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 ]