velocity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
(41 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | |||
| ofpr | |||
|1.80 | |||
|gr1= Object Manipulation | |||
| 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 | |||
|p1= vehicleName: [[Object]] | |||
[[Array]] | | [[Array]] | ||
|x1= <code>_vector = [[velocity]] jeep;</code> | |||
|x2= <code>[[if]] (([[velocity]] _plane1 [[select]] 2) > 50) [[then]] { [[hint]] "Aircraft is climbing up too fast!"; };</code> | |||
|seealso= [[setVelocity]], [[velocityModelSpace]], [[setVelocityModelSpace]], [[setVelocityTransformation]], [[speed]] | |||
}} | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | |||
{{GameCategory|arma1|Scripting Commands}} | |||
{{GameCategory|arma2|Scripting Commands}} | |||
{{GameCategory|arma2|Scripting Commands}} | |||
{{GameCategory|tkoh|Scripting Commands}} | |||
{{GameCategory|arma3|Scripting Commands}} |
Revision as of 00: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