BIS fnc locations: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> <dt><dt>" to " <dl class="command_description"> <dt><dt>")
m (Text replacement - " +(spawn|call) +'''([a-zA-Z0-9_]+)'''[ ]* " to " $1 $2 ")
Line 27: Line 27:
If you're registering currently existing object and some of variables above is already stored in it, it '''won't''' be replaced.
If you're registering currently existing object and some of variables above is already stored in it, it '''won't''' be replaced.


| [type(s),area,''debug''] call '''BIS_fnc_locations'''
| [type(s),area,''debug''] call [[BIS_fnc_locations]]


|p1= type(s): [[String]] or [[Array]] of strings
|p1= type(s): [[String]] or [[Array]] of strings
Line 37: Line 37:
| [[Array]] - List of registered locations<br><br>
| [[Array]] - List of registered locations<br><br>


|s2= [objects] call '''BIS_fnc_locations'''
|s2= [objects] call [[BIS_fnc_locations]]


|p21= objects: Array of [[Object]]s or [[Location]]s - list of specific locations to be registered
|p21= objects: Array of [[Object]]s or [[Location]]s - list of specific locations to be registered

Revision as of 16:17, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Systems

Syntax

Syntax:
Syntax needed
Parameters:
type(s): String or Array of strings
area: Array in format [center,distance]
debug: (Optional): Boolean
Return Value:
Return value needed

Alternative Syntax

Syntax:
[objects] call BIS_fnc_locations
Parameters:
objects: Array of Objects or Locations - list of specific locations to be registered
Return Value:
Array - List of registered locations

Examples

Example 1:
["CityCenter",[position player,1000]] call bis_fnc_locations;
Example 2:
[["acityc_dolina"]] call bis_fnc_locations;
Example 3:
[[myLocation1,myLocation2],[],true] call bis_fnc_locations;

Additional Information

See also:
Functions Library

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
Posted on May 31, 2009 - 15:15
Str
You can also use "" call bis_fnc_locations for quick debug of all locations on landscape