BIS fnc locations: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 11: | Line 10: | ||
|eff= |MPEFFECTS= | |eff= |MPEFFECTS= | ||
| Creates or registers location logics (used in various modules, like [[Ambient Civilians]], [[Ambient Civilian Vehicles]] or Warfare 2). | | Creates or registers location logics (used in various modules, like [[Ambient Civilians]], [[Ambient Civilian Vehicles]] or Warfare 2). | ||
Line 22: | Line 20: | ||
If you're registering currently existing object and some of variables above is already stored in it, it '''won't''' be replaced.|DESCRIPTION= | If you're registering currently existing object and some of variables above is already stored in it, it '''won't''' be replaced.|DESCRIPTION= | ||
| [type(s),area,''debug''] call '''BIS_fnc_locations''' |SYNTAX= | | [type(s),area,''debug''] call '''BIS_fnc_locations''' |SYNTAX= | ||
Line 47: | Line 44: | ||
|x3= <code><nowiki>[[</nowiki>myLocation1,myLocation2],[],true] call bis_fnc_locations;</code>|EXAMPLE3= | |x3= <code><nowiki>[[</nowiki>myLocation1,myLocation2],[],true] call bis_fnc_locations;</code>|EXAMPLE3= | ||
| [[Functions Library]] |SEEALSO= | | [[Functions Library]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 23:20, 16 January 2021
Description
- Description:
- Creates or registers location logics (used in various modules, like Ambient Civilians, Ambient Civilian Vehicles or Warfare 2).
Upon registering, function will set following variables into location logic's variable space:
- "class" - unique class of location (either BIS_loc_<configname> or BIS_loc_custom_<ID>)
- "name" - name of location from config or setName command. If none is defined, class is used
- "type" - config type
- "neighbors" - config defined neighbor locations
- Execution:
- call
- Groups:
- Systems
Syntax
- Syntax:
- [type(s),area,debug] call BIS_fnc_locations
- Parameters:
- type(s): String or Array of strings
- area: Array in format [center,distance]
- debug: (Optional): Boolean
- Return Value:
- Array - List of registered locations
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
Notes
- Posted on May 31, 2009 - 15:15
- Str
- You can also use "" call bis_fnc_locations for quick debug of all locations on landscape