brakesDisabled: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
m (fix example)
 
Line 19: Line 19:
if !(brakesDisabled _vehicle) then
if !(brakesDisabled _vehicle) then
{
{
disableBrakes _vehicle;
_vehicle disableBrakes true;
};
};
</sqf>
</sqf>

Latest revision as of 02:55, 11 October 2025

Hover & click on the images for description

Description

Description:
Returns the status of autobrake (see disableBrakes).
Groups:
PhysX

Syntax

Syntax:
brakesDisabled transport
Parameters:
transport: Object - PhysX car or tank
Return Value:
Boolean - true if autobrake is disabled

Examples

Example 1:
if !(brakesDisabled _vehicle) then { _vehicle disableBrakes true; };

Additional Information

See also:
disableBrakes awake isAwake addTorque addForce vectorModelToWorld vectorModelToWorldVisual selectionPosition setVelocityTransformation setVelocityModelSpace

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