BIS fnc randomPosTrigger: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| tkoh | | tkoh | ||
|1.00 | |1.00 | ||
|gr1 = Map and Markers | |gr1 = Map and Markers | ||
| Selects random position within trigger, marker, location area or area defined by array | | Selects random position within trigger, marker, location area or area defined by array | ||
| param call [[BIS_fnc_randomPosTrigger]] | | param call [[BIS_fnc_randomPosTrigger]] | ||
|p1= param: [[Object]] - trigger or [[String]] - marker or [[Location]] - location or [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]] | |p1= param: [[Object]] - trigger or [[String]] - marker or [[Location]] - location or [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]] | ||
|[[Array]] - random position in format [x,y,z] | |[[Array]] - random position in format [x,y,z] | ||
|x1= <code>marker1 [[call]] [[BIS_fnc_randomPosTrigger]];</code> | |x1= <code>marker1 [[call]] [[BIS_fnc_randomPosTrigger]];</code> | ||
|[[BIS_fnc_findSafePos]] | |[[BIS_fnc_findSafePos]] | ||
}} | }} |
Revision as of 23:38, 17 January 2021
Description
- Description:
- Selects random position within trigger, marker, location area or area defined by array
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- param call BIS_fnc_randomPosTrigger
- Parameters:
- param: Object - trigger or String - marker or Location - location or Array - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
- Return Value:
- Array - random position in format [x,y,z]
Examples
- Example 1:
marker1 call BIS_fnc_randomPosTrigger;
Additional Information
- See also:
- BIS_fnc_findSafePos
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