setTriggerArea: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| (\[\[[a-zA-Z ]+\]\]) \|x1=" to " |r1=$1 |x1=") |
||
Line 31: | Line 31: | ||
|p7= c: [[Number]] - (Optional) trigger area Z size / 2, in meters. -1 for infinite height {{Since|arma3|1.59.135137|y}} | |p7= c: [[Number]] - (Optional) trigger area Z size / 2, in meters. -1 for infinite height {{Since|arma3|1.59.135137|y}} | ||
| [[Nothing]] | |r1=[[Nothing]] | ||
|x1= <code>_trigger [[setTriggerArea]] [100, 50, 45, [[false]]];</code> | |x1= <code>_trigger [[setTriggerArea]] [100, 50, 45, [[false]]];</code> |
Revision as of 21:23, 10 June 2021
Description
- Description:
- Description needed
- Groups:
- Triggers
Syntax
- Syntax:
- Syntax needed
- Parameters:
- trigger: Object - object of the type "EmptyDetector"
- [a, b, angle, isRectangle, c]: Array
- a: Number - trigger area X size / 2, in meters
- b: Number - trigger area Y size / 2, in meters
- angle: Number - trigger area rotation in degrees
- isRectangle: Boolean - true if rectangle
- c: Number - (Optional) trigger area Z size / 2, in meters. -1 for infinite height Template:Since
- Return Value:
- Nothing
Examples
- Example 1:
_trigger setTriggerArea [100, 50, 45, false];
- Example 2:
_trigger setTriggerArea [100, 50, 45, false, 100];
- Example 3:
_trg = createTrigger ["EmptyDetector", getPos player, false]; _trg setTriggerArea [5, 5, 0, false]; _trg setTriggerActivation ["CIV", "PRESENT", true]; _trg setTriggerStatements ["this", "hint 'Civilian near player'", "hint 'no civilian near'"];
Additional Information
- See also:
- triggerAreacreateTriggersetTriggerActivationsetTriggerStatementssetTriggerTextsetTriggerTimeoutsetTriggerTypeinAreainAreaArraytriggerIntervalsetTriggerIntervalenableSimulationsimulationEnabled
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