BIS fnc setVehicleMass: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
||
Line 29: | Line 29: | ||
3) Will do the same as the first example, then, subtract 150 to the mass | 3) Will do the same as the first example, then, subtract 150 to the mass | ||
|x1= <code>{{ | |x1= <code>{{cc| default behaviour, change the mass according to the current phase of the animation sources}}result = [<nowiki/>[[this]]] [[call]] [[BIS__fnc_setVehicleMass]]; | ||
result = [<nowiki/>[[this]]] [[call]] [[BIS__fnc_setVehicleMass]]; | |||
result = [<nowiki/>[[this]], [], 0] [[call]] [[BIS_fnc_setVehicleMass]];</code> | result = [<nowiki/>[[this]], [], 0] [[call]] [[BIS_fnc_setVehicleMass]];</code> | ||
|x2= <code>{{ | |x2= <code>{{cc| doesn't care about the current phase of animations, it will change the mass for the given sources}}result = [<nowiki/>[[this]], ["source1", 1, "source2", 0]] [[call]] [[BIS_fnc_initVehicle]];</code> | ||
result = [<nowiki/>[[this]], ["source1", 1, "source2", 0]] [[call]] [[BIS_fnc_initVehicle]];</code> | |||
|x3= <code>{{ | |x3= <code>{{cc| will do the same as the first example, then subtract 150 to the mass}}result = [<nowiki/>[[this]], [], -150] [[call]] [[BIS_fnc_initVehicle]];</code> | ||
result = [<nowiki/>[[this]], [], -150] [[call]] [[BIS_fnc_initVehicle]];</code> | |||
| [[setMass]], [[setCenterOfMass]] | | [[setMass]], [[setCenterOfMass]] |
Revision as of 16:34, 29 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object
- animationInformation: Boolean or Array - (Optional, default
[]
) - massDifference: Number - (Optional, default 0) value to add to the mass (can be negative)
- Return Value:
- Return value needed
Examples
- Example 1:
// default behaviour, change the mass according to the current phase of the animation sourcesresult = [this] call BIS__fnc_setVehicleMass; result = [this, [], 0] call BIS_fnc_setVehicleMass;
- Example 2:
// doesn't care about the current phase of animations, it will change the mass for the given sourcesresult = [this, ["source1", 1, "source2", 0]] call BIS_fnc_initVehicle;
- Example 3:
// will do the same as the first example, then subtract 150 to the massresult = [this, [], -150] call BIS_fnc_initVehicle;
Additional Information
- See also:
- See also needed
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