BIS fnc simpleObjectData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Remove note template usage)
Line 18: Line 18:
* [[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. |PARAMETER1=
&nbsp;<!-- Return Value jumps up without this atm --> |PARAMETER1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 30: Line 29:
* hiddenSelections: [[Array]] - hidden selections
* hiddenSelections: [[Array]] - hidden selections


{{note|Return values can be used in [[BIS_fnc_adjustSimpleObject]]}} |RETURNVALUE=
{{Informative | Return values can be used with [[BIS_fnc_adjustSimpleObject]].}} |RETURNVALUE=


____________________________________________________________________________________________
____________________________________________________________________________________________
Line 40: Line 39:


| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] |SEEALSO=
| [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]] |SEEALSO=
}}
}}


Line 50: Line 48:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma 3: Functions|{{uc:simpleObjectData}}]]
[[Category:Functions|{{uc:simpleObjectData}}]]

Revision as of 19:03, 26 December 2020

Hover & click on the images for description

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.
Return Value:
Array in format [class, model, reversed, verticalOffset, animationAdjustments, hiddenSelections]:
  • class: String - class name from CfgVehicles
  • model: String - path to the vehicle p3d mode
  • reversed: Number - reverse value, to fix orientation
  • verticalOffset: Array - vertical offset
  • animationAdjustments: Array - animation adjustments
  • hiddenSelections: Array - hidden selections
Return values can be used with BIS_fnc_adjustSimpleObject.

Examples

Example 1:
["B_Boat_Armed_01_minigun_F"] call BIS_fnc_simpleObjectData;
Example 2:
[BIS_boat] call BIS_fnc_simpleObjectData;

Additional Information

See also:
createSimpleObjectBIS_fnc_adjustSimpleObjectBIS_fnc_createSimpleObject

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

Bottom Section