BIS fnc simpleObjectData: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *(\^+\]) +\[\[call\]\] +\[\[(BIS_fnc_[a-zA-Z0-9_]+)\]\];? *<\/code>" to "<sqf>$1 call $2;</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
||
Line 34: | Line 34: | ||
|x2= <sqf>[BIS_boat] call BIS_fnc_simpleObjectData;</sqf> | |x2= <sqf>[BIS_boat] call BIS_fnc_simpleObjectData;</sqf> | ||
|seealso= [[createSimpleObject]] | |seealso= [[createSimpleObject]] [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] | ||
}} | }} |
Revision as of 12:58, 1 July 2022
Description
- Description:
- Get complete data needed for simple object creation.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [classname] call BIS_fnc_simpleObjectData
- Parameters:
- classname: Object or String:
- Object - Existing object or simple object that will be scanned; if it is a simple object '_reversed' attribute cannot be retrieved
- String - Can be either:
- Classname of the object; data are retrieved from the config definition.
- Path to the p3d; verifies and fixes model path format and returns it in an array (index 1).
It has very limited functionality in this mode as no data can actually be retrieved from model path.
- Object - Existing object or simple object that will be scanned; if it is a simple object '_reversed' attribute cannot be retrieved
- Return Value:
- Array in format [class, model, reversed, verticalOffset, animationAdjustments, selectionsToHide, verticalOffsetWorld, textures, randomizeAnims, randomizeTexs]:
- class: String - (Default "") class name from CfgVehicles
- model: String - (Default "") path to the vehicle p3d mode
- reversed: Number - (Default 0) reverse value, to fix orientation. 0: no change, 1: reverse
- verticalOffset: Array - (Default 0) vertical offset
- animationAdjustments: Array - (Default []) animation to animate, every element has this format: [_animationName:string,_animationState:scalar]
- hiddenSelections: Array - (Default []) all listed selection will be hidden
- verticalOffsetWorld: Number - vertical offset in World coordinates; similar to ASL but refers to object at [0,0,0], not its land contacts
- textures: Array - textures currently applied to the object
- randomizeAnims: Boolean - (Default false) true if vehicle supports randomization through animations
- randomizeTexs: Boolean - (Default false) true if vehicle supports randomization of textures
Examples
- Example 1:
- Example 2:
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