BIS fnc simpleObjectData: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Remove note template usage) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| Arma 3 |Game= | | Arma 3 |Game= | ||
Line 7: | Line 6: | ||
|gr1 = Object Manipulation |GROUP1= | |gr1 = Object Manipulation |GROUP1= | ||
| Get complete data needed for simple object creation. |DESCRIPTION= | | Get complete data needed for simple object creation. |DESCRIPTION= | ||
| [classname] call [[BIS_fnc_simpleObjectData]] |SYNTAX= | | [classname] call [[BIS_fnc_simpleObjectData]] |SYNTAX= | ||
Line 19: | Line 16: | ||
** Classname of the object; data are retrieved from the config definition. | ** 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).<br>It has very limited functionality in this mode as no data can actually be retrieved from model path. |PARAMETER1= | ** 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. |PARAMETER1= | ||
| [[Array]] in format [class, model, reversed, verticalOffset, animationAdjustments, hiddenSelections]: | | [[Array]] in format [class, model, reversed, verticalOffset, animationAdjustments, hiddenSelections]: | ||
Line 31: | Line 27: | ||
{{Informative | Return values can be used with [[BIS_fnc_adjustSimpleObject]].}} |RETURNVALUE= | {{Informative | Return values can be used with [[BIS_fnc_adjustSimpleObject]].}} |RETURNVALUE= | ||
|x1= <code>["B_Boat_Armed_01_minigun_F"] [[call]] [[BIS_fnc_simpleObjectData]];</code>|EXAMPLE1= | |x1= <code>["B_Boat_Armed_01_minigun_F"] [[call]] [[BIS_fnc_simpleObjectData]];</code>|EXAMPLE1= | ||
|x2= <code>[BIS_boat] [[call]] [[BIS_fnc_simpleObjectData]];</code>|EXAMPLE2= | |x2= <code>[BIS_boat] [[call]] [[BIS_fnc_simpleObjectData]];</code>|EXAMPLE2= | ||
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] |SEEALSO= | | [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] |SEEALSO= |
Revision as of 23:51, 16 January 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, hiddenSelections]:
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