BIS fnc randomPosTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (template:command argument fix)
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Selects random position within trigger, marker, location area or area defined by array |DESCRIPTION=
 
Description:
Selects random position withing trigger area
 
Parameter(s):
_this select 0:
OBJECT - trigger (automatically sets area param)
ARRAY - position
STRING - marker
_this select 1:
NUMBER - radius around position set in param 0.
ARRAY - trigger settings in format of triggerArea command
 
Returns:
ARRAY - [x,y,z]
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_randomPosTrigger]]; --> |= Syntax
| param call [[BIS_fnc_randomPosTrigger]] |SYNTAX=


|p1= |= Parameter 1
|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]]|PARAMETER1=


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


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


| |= See also
|[[BIS_fnc_findSafePos]] |SEEALSO=


}}
}}

Revision as of 15:32, 7 April 2019


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:
Uncategorised

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