BIS fnc simpleObjectData: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "| Arma 3" to "| arma3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3|1.62 | |game1= arma3 | ||
|version1= 1.62 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Get complete data needed for simple object creation. | |descr= Get complete data needed for simple object creation. | ||
|s1=[classname] call [[BIS_fnc_simpleObjectData]] | |s1= [classname] call [[BIS_fnc_simpleObjectData]] | ||
|p1= classname: [[Object]] or [[String]]: | |p1= classname: [[Object]] or [[String]]: | ||
Line 15: | Line 16: | ||
** Path to the p3d; verifies and fixes model path format and returns it in an array (index 1).<br>It has very limited functionality in this mode as no data can actually be retrieved from model path. | ** Path to the p3d; verifies and fixes model path format and returns it in an array (index 1).<br>It has very limited functionality in this mode as no data can actually be retrieved from model path. | ||
| [[Array]] in format [class, model, reversed, verticalOffset, animationAdjustments, selectionsToHide, verticalOffsetWorld, textures, randomizeAnims, randomizeTexs]: | |r1= [[Array]] in format [class, model, reversed, verticalOffset, animationAdjustments, selectionsToHide, verticalOffsetWorld, textures, randomizeAnims, randomizeTexs]: | ||
* class: [[String]] - (Default "") class name from CfgVehicles | * class: [[String]] - (Default "") class name from CfgVehicles | ||
* model: [[String]] - (Default "") path to the vehicle p3d mode | * model: [[String]] - (Default "") path to the vehicle p3d mode |
Revision as of 04:05, 13 June 2021
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:
[BIS_boat] call BIS_fnc_simpleObjectData;
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