BIS fnc randomPosTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|(\[\[[a-zA-Z]+\]\].+) * \|x1=" to " |r1= $1 |x1=")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| tkoh
|game1= tkoh
|version1= 1.00


|1.00
|game2= arma3
|version2= 0.50


|gr1= Map and Markers
|gr1= Map and Markers


| Selects random position within trigger, marker, location area or area defined by array
|descr= Selects random position within trigger, marker, location area or area defined by array


| param call [[BIS_fnc_randomPosTrigger]]
|s1= 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: can be one of:
* [[Object]] - trigger
* [[String]] - marker
* [[Location]] - location
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]


|r1= [[Array]] - random position in format [x,y,z]
|r1= [[Array]] - random position in format [x,y,z]
Line 19: Line 25:
|seealso= [[BIS_fnc_findSafePos]]
|seealso= [[BIS_fnc_findSafePos]]
}}
}}
[[Category:{{Name|tkoh}}: Functions|{{uc:randomPosTrigger}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:randomPosTrigger}}]]

Revision as of 17:27, 10 June 2021

Hover & click on the images for description

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: can be one of:
  • Object - trigger
  • String - marker
  • Location - location
  • 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