BIS fnc adjustSimpleObject: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | Arma 3 |= Game |1.62|= Game Version ____________________...") |
m (1 revision imported: BIS Functions update 2/7) |
(No difference)
|
Revision as of 19:58, 20 May 2017
Description
- Description:
- Adjust simple object vertical position, animations and selection according to provided data.
Remarks:
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: Simple object that will be adjusted
- Array: Adjustment data in format:
0: String: class - Asset CfgVehicles config class (default: ""; but at least either _model or _class must be provided, ideally both)
1: String: model - Path to the vehicle p3d model; needs to start without backslash and must end with the proper file extension ".p3d" (default: ""; but at least either _model or _class must be provided, ideally both)
2: Number: reversed - Some objects, usually vehicles, are reveresed in p3d (default: 0); valid values are 0: no change, 1: reverse, -1: unknown (behaves as 0)
3: Array: verticalOffset - Fix for non-existant physX; usually needed only for vehicles (default: 0)
4: Array: animationAdjustments - Animation that need to be animated to given state (default: []); every element has this format: [_animationName:string,_animationState:scalar]
5: Array: selectionsToHide - All listed selection will be hidden (default: []) - Return Value:
- Nothing
Examples
- Example 1:
[object, [class, model]] call BIS_fnc_adjustSimpleObject;
Additional Information
- See also:
- createSimpleObjectBIS_fnc_adjustSimpleObjectBIS_fnc_createSimpleObjectBIS_fnc_simpleObjectData
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