BIS fnc adjustSimpleObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix category, description, example and see also) |
Lou Montana (talk | contribs) m (Moar fix) |
||
Line 14: | Line 14: | ||
| [object, [class, model, reversed, verticalOffset, animAdjustments, selectionToHide]] [[call]] [[BIS_fnc_adjustSimpleObject]] |= Syntax | | [object, [class, model, reversed, verticalOffset, animAdjustments, selectionToHide]] [[call]] [[BIS_fnc_adjustSimpleObject]] |= Syntax | ||
|p1= [[Object]] | |p1= object: [[Object]] - simple object that will be adjusted |= Parameter 1 | ||
|p2= | |p2= [class, model, reversed, verticalOffset, animAdjustments, selectionToHide]: [[Array]] - adjustment data: | ||
* class: [[String]] - (default "") asset CfgVehicles config class ('''at least either ''model'' or ''class'' must be provided, ideally both''') | * class: [[String]] - (default "") asset CfgVehicles config class ('''at least either ''model'' or ''class'' must be provided, ideally both''') | ||
* model: [[String]] - (default "") Path to the vehicle p3d model; needs to start without backslash and must end with the proper file extension ".p3d" | * model: [[String]] - (default "") Path to the vehicle p3d model; needs to start without backslash and must end with the proper file extension ".p3d" | ||
Line 43: | Line 43: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- BEGIN Note Section --> | <!-- BEGIN Note Section --> | ||
<!-- END Note Section --> | <!-- END Note Section --> | ||
</dl> | </dl> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Arma 3: Functions|{{uc:adjustSimpleObject}}]] | [[Category:Arma 3: Functions|{{uc:adjustSimpleObject}}]] |
Revision as of 17:53, 21 April 2018
Description
- Description:
- Adjust simple object vertical position, animations and selection according to provided data.
NOTE: function is automatically called by BIS_fnc_createSimpleObject. In case both adjustment data and class are being used, data has higher priority and only undefined parts are filled from config. - Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [object, [class, model, reversed, verticalOffset, animAdjustments, selectionToHide]] call BIS_fnc_adjustSimpleObject
- Parameters:
- object: Object - simple object that will be adjusted
- [class, model, reversed, verticalOffset, animAdjustments, selectionToHide]: Array - adjustment data:
- class: String - (default "") asset CfgVehicles config class (at least either model or class must be provided, ideally both)
- model: String - (default "") Path to the vehicle p3d model; needs to start without backslash and must end with the proper file extension ".p3d"
- reversed: Number - (default 0) some objects, usually vehicles, are reveresed in p3d; valid values are:
- 0: no change
- 1: reverse
- -1: unknown (behaves as 0)
- verticalOffset: Array - (Optional, default 0) fix for non-existant physX; usually needed only for vehicles
- animationAdjustments: Array - (Optional, default []) Animation that need to be animated to given state, in format [animationName, animationState]:
- selectionsToHide: Array - (Optional, default []) all listed selections will be hidden
- Return Value:
- Nothing
Examples
- Example 1:
[myCar, ["B_MyCar_F", "path\to\file.p3d"]] call BIS_fnc_adjustSimpleObject;
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