Difference between revisions of "brakesDisabled"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
|game1= arma3
 
|game1= arma3
 
|version1= 2.08
 
|version1= 2.08
|branch= dev
 
  
 
|arg= global
 
|arg= global
Line 9: Line 8:
 
|gr1= Object Manipulation
 
|gr1= Object Manipulation
  
|descr= Returns the status of autobrake (see [[disableBrakes]])
+
|descr= Returns the status of autobrake (see [[disableBrakes]]).
 +
 
 
|s1= [[brakesDisabled]] transport
 
|s1= [[brakesDisabled]] transport
  
Line 16: Line 16:
 
|r1= [[Boolean]] - [[true]] if autobrake is disabled
 
|r1= [[Boolean]] - [[true]] if autobrake is disabled
  
|x1= <code>_autobrakeDisabled = [[disableBrakes]] mycar;</code>
+
|x1= <sqf>
 +
if !(brakesDisabled _vehicle) then
 +
{
 +
disableBrakes _vehicle;
 +
};
 +
</sqf>
  
 
|seealso= [[disableBrakes]] [[awake]] [[isAwake]] [[addTorque]] [[addForce]] [[vectorModelToWorld]] [[vectorModelToWorldVisual]] [[selectionPosition]] [[setVelocityTransformation]] [[setVelocityModelSpace]]
 
|seealso= [[disableBrakes]] [[awake]] [[isAwake]] [[addTorque]] [[addForce]] [[vectorModelToWorld]] [[vectorModelToWorldVisual]] [[selectionPosition]] [[setVelocityTransformation]] [[setVelocityModelSpace]]
 
}}
 
}}

Latest revision as of 13:49, 3 May 2022

Hover & click on the images for description

Description

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

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 { disableBrakes _vehicle; };

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