BIS fnc sceneSetObjects: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2oa | ||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Broken Functions | |gr1= Broken Functions | ||
Line 9: | Line 17: | ||
|gr2= Scenes | |gr2= Scenes | ||
| This function sets objects positions and direction relative to the chosen object. | |descr= This function sets objects positions and direction relative to the chosen object. | ||
{{Feature| | {{Feature|warning|Same as its [[BIS_fnc_sceneGetObjects|GET]] counterpart (at least in {{arma3}}), this function does not work as intended as it does not set objects' direction properly. All objects will be created with a zero azimuth.}} | ||
| [centre, objectsArray, applyOffset, stopped] call [[BIS_fnc_sceneSetObjects]] | |s1= [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]] - | |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 {{hl|BIS_debugModules}} is defined, units will be [[stop|stopped]] | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>[player, _arrayOfObjects, false] call BIS_fnc_sceneSetObjects;</sqf> | ||
|seealso= [[BIS_fnc_sceneGetObjects]] | |seealso= [[BIS_fnc_sceneGetObjects]] [[BIS_fnc_objectsGrabber]] [[BIS_fnc_objectsMapper]] | ||
}} | }} | ||
Latest revision as of 13:00, 1 July 2022
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:
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