velocityModelSpace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added example)
Line 17: Line 17:




|x1= <code>
|x1= <code>velocityModelSpace _chopper; // will return [X (left(-) right(+)), Y (backward(-) forward(+)), Z (down(-) up(+))]
</code>|= EXAMPLE1  
</code>|= EXAMPLE1  



Revision as of 16:41, 12 January 2014

Hover & click on the images for description

Description

Description:
Returns the velocity (speed vector) of the vehicle as an array with format [x, z, y]. Vector is in model space.
Groups:
Uncategorised

Syntax

Syntax:
velocityModelSpace vehicle
Parameters:
vehicle: Object
Return Value:
Array

Examples

Example 1:
velocityModelSpace _chopper; // will return [X (left(-) right(+)), Y (backward(-) forward(+)), Z (down(-) up(+))]

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

Notes

Bottom Section