createTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CREATETRIGGER]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |CREATETRIGGER]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CREATETRIGGER]]


| ofpr |= Game name


<h2 style="color:#000066">''' createTrigger ''[type, position]'''''</h2>
|1.86|= Game version
____________________________________________________________________________________________


| 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. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''createTrigger''' [type, position] |= Syntax


'''[type, position]:''' [[Array]]
|p1= [type, position]: [[Array]] |= Parameter 1


'''Type of returned value:'''
| [[Object]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>trigger = createTrigger ["EmptyDetector", [[position]] [[player]] ]</pre> |= Example 1
____________________________________________________________________________________________


[[Object]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Creates a new trigger on the given '''position'''.
<h3 style="display:none">Bottom Section</h3>


An object of the given '''type''' is created; this type must be a class name in CfgNonAIVehicles or CfgVehicles with simulation=detector.
[[Category:Scripting Commands|CREATETRIGGER]]
 
[[Category:Scripting Commands OFP Elite |CREATETRIGGER]]
 
[[Category:Scripting Commands ArmA|CREATETRIGGER]]
'''Example:'''
 
trigger = '''createTrigger''' ["EmptyDetector", [[position]] [[player]] ]

Revision as of 23:08, 1 August 2006

Hover & click on the images for description

Description

Description:
createTrigger [type, position]
Groups:
Uncategorised

Syntax

Syntax:
Object
Parameters:
[type, position]: Array
Return Value:
Return value needed

Examples

Example 1:
trigger = createTrigger ["EmptyDetector", [[position]] [[player]] ]

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section