BIS fnc simpleObjectData: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| Arma 3 |Game= | | Arma 3 |Game= | ||
|1.62 | |1.62 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Get complete data needed for simple object creation. | | Get complete data needed for simple object creation. | ||
| [classname] call [[BIS_fnc_simpleObjectData]] | | [classname] call [[BIS_fnc_simpleObjectData]] | ||
|p1= classname: [[Object]] or [[String]]: | |p1= classname: [[Object]] or [[String]]: | ||
Line 15: | Line 15: | ||
* [[String]] - Can be either: | * [[String]] - Can be either: | ||
** 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. | ** 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, hiddenSelections]: | | [[Array]] in format [class, model, reversed, verticalOffset, animationAdjustments, hiddenSelections]: | ||
Line 25: | Line 25: | ||
* hiddenSelections: [[Array]] - hidden selections | * hiddenSelections: [[Array]] - hidden selections | ||
{{Informative | Return values can be used with [[BIS_fnc_adjustSimpleObject]].}} | {{Informative | Return values can be used with [[BIS_fnc_adjustSimpleObject]].}} | ||
|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= <code>[BIS_boat] [[call]] [[BIS_fnc_simpleObjectData]];</code> | |x2= <code>[BIS_boat] [[call]] [[BIS_fnc_simpleObjectData]];</code> | ||
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] | | [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] | ||
}} | }} | ||
Revision as of 23:47, 17 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