BIS fnc randomPosTrigger: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "<code>(\[?[^\[]+\]?) *(\[\[)?(call|spawn)(\]\])? *(\[\[)?(BI(N|S)_fnc_[a-zA-Z0-9_]+)(\]\])?;?<\/code>" to "<sqf>$1 $3 $6;</sqf>")
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| tkoh |= Game name
|game2= arma3
|version2= 0.50


|1.00|= Game version
|gr1= Map and Markers
____________________________________________________________________________________________


| <pre>/*
|descr= Selects random position within trigger, marker, location area or area defined by array


Description:
|s1= param call [[BIS_fnc_randomPosTrigger]]
Selects random position withing trigger area


Parameter(s):
|p1= param: can be one of:
_this select 0:
* [[Object]] - trigger
OBJECT - trigger (automatically sets area param)
* [[String]] - marker
ARRAY - position
* [[Location]] - location
STRING - marker
* [[Array]] - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]
_this select 1:
NUMBER - radius around position set in param 0.
ARRAY - trigger settings in format of triggerArea command


Returns:
|r1= [[Array]] - random position in format [x,y,z]
ARRAY - [x,y,z]
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <sqf>marker1 call BIS_fnc_randomPosTrigger;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_randomPosTrigger]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_findSafePos]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:randomPosTrigger}}]]
[[Category:Functions|{{uc:randomPosTrigger}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:randomPosTrigger}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:randomPosTrigger}}]]

Latest revision as of 13:24, 1 July 2022

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