BIS fnc simpleObjectData: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>") |
||
Line 32: | Line 32: | ||
|x1= <code>["B_Boat_Armed_01_minigun_F"] [[call]] [[BIS_fnc_simpleObjectData]];</code> | |x1= <code>["B_Boat_Armed_01_minigun_F"] [[call]] [[BIS_fnc_simpleObjectData]];</code> | ||
|x2= < | |x2= <sqf>[BIS_boat] call BIS_fnc_simpleObjectData;</sqf> | ||
|seealso= [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] | |seealso= [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] | ||
}} | }} |
Revision as of 13:04, 5 May 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:
["B_Boat_Armed_01_minigun_F"] call BIS_fnc_simpleObjectData;
- 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