BIS fnc randomPosTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Function Group: [a-zA-Z0-9_: ]+(\|\{\{[a-zA-Z0-9_: ]+\}\})?\]\]" to " ")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| tkoh |Game name=
| tkoh |Game name=
Line 7: Line 6:


|gr1 = Map and Markers |GROUP1=
|gr1 = Map and Markers |GROUP1=
____________________________________________________________________________________________


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


| param call [[BIS_fnc_randomPosTrigger]] |SYNTAX=
| param call [[BIS_fnc_randomPosTrigger]] |SYNTAX=
Line 17: Line 14:


|[[Array]] - random position in format [x,y,z] |RETURNVALUE=
|[[Array]] - random position in format [x,y,z] |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>marker1 [[call]] [[BIS_fnc_randomPosTrigger]];</code> |=  
|x1= <code>marker1 [[call]] [[BIS_fnc_randomPosTrigger]];</code> |=  
____________________________________________________________________________________________


|[[BIS_fnc_findSafePos]] |SEEALSO=
|[[BIS_fnc_findSafePos]] |SEEALSO=

Revision as of 00:46, 17 January 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: 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

Notes

Bottom Section