createTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fixed description)
(expanded)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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 <nowiki>=</nowiki> detector. |= 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 <nowiki>=</nowiki> detector.
 
An array containing all units that have activated the trigger is available via [[list]] ''triggerobj''.
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>trigger<nowiki> =</nowiki> createTrigger ["EmptyDetector", [[position]] [[player]] ]</code> |= Example 1
|x1= <code>trgobj <nowiki>=</nowiki> createTrigger ["EmptyDetector", [[position]] [[player]] ]<br>
_trgunits <nowiki>=</nowiki> list trgobj</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


|  |= See also
|[[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]] |= See also


}}
}}

Revision as of 06:55, 11 January 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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. An array containing all units that have activated the trigger is available via list triggerobj.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
trgobj = createTrigger ["EmptyDetector", position player ]
_trgunits = list trgobj

Additional Information

See also:
setTriggerActivationsetTriggerAreasetTriggerStatementssetTriggerTextsetTriggerTimeoutsetTriggerType

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