BIS fnc simpleObjectData: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | Arma 3 |= Game |1.62|= Game Version ____________________...") |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Arma 3 |= Game | ||
|1. | |1.62|= Game Version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |Get complete data needed for simple object creation.|= Description | ||
____________________________________________________________________________________________ | |||
| [classname] [[call]] '''BIS_fnc_simpleObjectData''' |= Syntax | |||
|p1= | |||
[[String]] - Classname of the object; data are retrieved from the config definition.<br> | |||
or<br> | |||
[[Object]] - Existing object or simple object that will be scanned; if it is a simple object '_reversed' attribute cannot be retrieved<br> | |||
or<br> | |||
[[String]] - 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. | |||
|= Parameter 1 | |||
____________________________________________________________________________________________ | |||
| | |||
[[Array]] in format:<br> | |||
0: [[String]] - Class name from CfgVehicles<br> | |||
1: [[String]] - Model - Path to the vehicle p3d model<br> | |||
2: [[Number]] - Reversed - Reverse value, to fix orientation<br> | |||
3: [[Array]] - Vertical offset<br> | |||
4: [[Array]] - Animation adjustments<br> | |||
5: [[Array]] - Hidden selections<br> | |||
{{note|Return values can be used in [[BIS_fnc_adjustSimpleObject]]}}|= Return value | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | |x1= <code>["B_Boat_Armed_01_minigun_F"] [[call]] '''BIS_fnc_simpleObjectData''';</code>|= EXAMPLE1 | ||
| | |x2= <code>[BIS_boat] [[call]] '''BIS_fnc_simpleObjectData''';</code>|= EXAMPLE2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See | | [[createSimpleObject]], [[BIS_fnc_adjustSimpleObject]], [[BIS_fnc_createSimpleObject]]|= See Also | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section | <!-- BEGIN Note Section --> | ||
<!-- For example: | |||
<!-- Note Section | <dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd> | ||
<dt class="note">'''[[User:User Name|User Name]]'''</dt> | |||
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet. | |||
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd> | |||
--> | |||
<!-- END Note Section --> | |||
</dl> | </dl> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category: | <!-- Appropriate categories go here --> | ||
[[Category:Arma 3: Functions|{{uc:{{PAGENAME}}}}]] | |||
Revision as of 18:10, 14 September 2016
Description
- Description:
- Get complete data needed for simple object creation.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [classname] call BIS_fnc_simpleObjectData
- Parameters:
- String - Classname of the object; data are retrieved from the config definition.
or
Object - Existing object or simple object that will be scanned; if it is a simple object '_reversed' attribute cannot be retrieved
or
String - 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:
0: String - Class name from CfgVehicles
1: String - Model - Path to the vehicle p3d model
2: Number - Reversed - Reverse value, to fix orientation
3: Array - Vertical offset
4: Array - Animation adjustments
5: Array - Hidden selections
Template:note
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