BIS fnc sceneSetObjects: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Broken Functions | |gr1= Broken Functions | ||
|gr2 = Scenes | |gr2 = Scenes | ||
| This function sets objects positions and direction relative to the chosen object. | | This function sets objects positions and direction relative to the chosen object. | ||
{{Warning|Same as its [[BIS_fnc_sceneGetObjects|GET]] counterpart (at least in {{arma3}}), this function doesn't work as intended as it doesn't set objects direction properly. All objects will be created with a zero azimuth.}} | {{Warning|Same as its [[BIS_fnc_sceneGetObjects|GET]] counterpart (at least in {{arma3}}), this function doesn't work as intended as it doesn't set objects direction properly. All objects will be created with a zero azimuth.}} | ||
| [centre, objectsArray, applyOffset, stopped] call [[BIS_fnc_sceneSetObjects]] | | [centre, objectsArray, applyOffset, stopped] call [[BIS_fnc_sceneSetObjects]] | ||
|p1= centre: [[Object]] or [[String]] - object or marker name - '''NOT''' a [[Position]] | |p1= centre: [[Object]] or [[String]] - object or marker name - '''NOT''' a [[Position]] | ||
|p2= objectsArray: [[Array]] - See [[BIS_fnc_sceneGetObjects]] for format information | |p2= objectsArray: [[Array]] - See [[BIS_fnc_sceneGetObjects]] for format information | ||
|p3= applyOffset: [[Boolean]] - [[true]] to apply height offset | |p3= applyOffset: [[Boolean]] - [[true]] to apply height offset | ||
|p4= stopped: [[Anything]] - if provided and if BIS_debugModules is defined, units will be [[stop|stopped]] | |p4= stopped: [[Anything]] - if provided and if BIS_debugModules is defined, units will be [[stop|stopped]] | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[player, ''_arrayOfObjects'', false] [[call]] [[BIS_fnc_sceneSetObjects]];</code> | |x1= <code>[player, ''_arrayOfObjects'', false] [[call]] [[BIS_fnc_sceneSetObjects]];</code> | ||
| [[BIS_fnc_sceneGetObjects]], [[BIS_fnc_objectsGrabber]], [[BIS_fnc_objectsMapper]] | | [[BIS_fnc_sceneGetObjects]], [[BIS_fnc_objectsGrabber]], [[BIS_fnc_objectsMapper]] | ||
}} | }} | ||
Revision as of 23:46, 17 January 2021
Description
- Description:
- This function sets objects positions and direction relative to the chosen object.
- Execution:
- call
- Groups:
- Broken FunctionsScenes
Syntax
- Syntax:
- [centre, objectsArray, applyOffset, stopped] call BIS_fnc_sceneSetObjects
- Parameters:
- centre: Object or String - object or marker name - NOT a Position
- objectsArray: Array - See BIS_fnc_sceneGetObjects for format information
- applyOffset: Boolean - true to apply height offset
- stopped: Anything - if provided and if BIS_debugModules is defined, units will be stopped
- Return Value:
- Boolean
Examples
- Example 1:
[player, _arrayOfObjects, false] call BIS_fnc_sceneSetObjects;
Additional Information
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