velocity: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
| Return velocity (speed vector) of [[Object#Unit|Unit]] as an array with format [x, y, z]. | | Return velocity (speed vector) of [[Object#Unit|Unit]] as an array with format [x, y, z]. | ||
{{ | {{Feature|important|Units are in metres per second.}} | ||
| [[velocity]] vehicleName | | [[velocity]] vehicleName | ||
Line 19: | Line 19: | ||
|x2= <code>[[if]] (([[velocity]] _plane1 [[select]] 2) > 50) [[then]] { [[hint]] "Aircraft is climbing up too fast!"; };</code> | |x2= <code>[[if]] (([[velocity]] _plane1 [[select]] 2) > 50) [[then]] { [[hint]] "Aircraft is climbing up too fast!"; };</code> | ||
| | |seealso= [[setVelocity]], [[velocityModelSpace]], [[setVelocityModelSpace]], [[setVelocityTransformation]], [[speed]] | ||
}} | }} | ||
Revision as of 01:15, 17 February 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicleName: Object
- Return Value:
- Return value needed
Examples
- Example 1:
_vector = velocity jeep;
- Example 2:
if ((velocity _plane1 select 2) > 50) then { hint "Aircraft is climbing up too fast!"; };
Additional Information
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