From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Set mass relative to the default vehicle mass (default mass being vehicle mass on first execution of this function).
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [vehicle, animationInformation, massDifference] call BIS_fnc_setVehicleMass
- Parameters:
- vehicle: Object
- animationInformation: Boolean or Array - (Optional, default c[])
- Boolean - true to take current animations mass in consideration, false to set "raw" mass
- Array - animation sources and phases to format ["animationSource1", 1, "animationSource2", 0, ...]
- massDifference: Number - (Optional, default 0) value to add to the mass (can be negative)
- Return Value:
- Boolean - success state
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- setMass setCenterOfMass
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