BIS fnc sceneAreaClearance: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "<code> +" to "<code>") |
||
Line 35: | Line 35: | ||
In regards to the 'safe position' where the objects get moved, this is how the function handles it (with default values present): | In regards to the 'safe position' where the objects get moved, this is how the function handles it (with default values present): | ||
<code> | <code>_savepos = [_unwantedObjectsTempPosition, 0, 100, 20, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; | ||
_savepos = [_unwantedObjectsTempPosition, 0, 100, 20, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; | |||
if((_savepos distance (getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"))) = 0) then | if((_savepos distance (getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"))) = 0) then | ||
{ | { |
Revision as of 16:51, 7 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Scenes
Syntax
- Syntax:
- Syntax needed
- Parameters:
- Object - Name of trigger to use as center point.
- Array - List of objects that will be kept during cutscene. Optional parameter, default empty array.
- Array - Of format Position, where to move all unwanted objects. Optional parameter, default [-5000, 10000, 0].
- Return Value:
- Return value needed
Examples
- Example 1:
0 = [triggerArea1] spawn BIS_fnc_sceneAreaClearance;
Additional Information
- See also:
- See also needed
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 October 2, 2014 - 16:29 (UTC)
- Tryteyker-
-
In regards to the 'safe position' where the objects get moved, this is how the function handles it (with default values present):
_savepos = [_unwantedObjectsTempPosition, 0, 100, 20, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; if((_savepos distance (getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"))) = 0) then { _savepos = _unwantedObjectsTempPosition; }; _x setpos _savepos;
If statement has double equals (comparison statement) but I'm not good enough to actually get wiki formatting right.