velocity: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "_{10,} " to "")  | 
				||
| Line 1: | Line 1: | ||
{{Command|Comments=  | {{Command|Comments=  | ||
| ofpr |Game name=  | | ofpr |Game name=  | ||
| Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1=  | |gr1= Object Manipulation |GROUP1=  | ||
| 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].  | ||
{{Important|Units are in metres per second.}} |Description=  | {{Important|Units are in metres per second.}} |Description=  | ||
| [[velocity]] vehicleName |Syntax=  | | [[velocity]] vehicleName |Syntax=  | ||
| Line 18: | Line 15: | ||
| [[Array]] |Return value=  | | [[Array]] |Return value=  | ||
|x1= <code>_vector = [[velocity]] jeep;</code> |Example 1=  | |x1= <code>_vector = [[velocity]] jeep;</code> |Example 1=  | ||
|x2= <code>[[if]] (([[velocity]] _plane1 [[select]] 2) > 50) [[then]] { [[hint]] "Aircraft is climbing up too fast!"; };</code> |Example 2=  | |x2= <code>[[if]] (([[velocity]] _plane1 [[select]] 2) > 50) [[then]] { [[hint]] "Aircraft is climbing up too fast!"; };</code> |Example 2=  | ||
|  [[setVelocity]], [[velocityModelSpace]], [[setVelocityModelSpace]], [[setVelocityTransformation]], [[speed]] |See also=  | |  [[setVelocity]], [[velocityModelSpace]], [[setVelocityModelSpace]], [[setVelocityTransformation]], [[speed]] |See also=  | ||
Revision as of 04:22, 17 January 2021
Description
- Description:
 - Return velocity (speed vector) of Unit as an array with format [x, y, z].
 - Groups:
 - Object Manipulation
 
Syntax
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 
Notes
Bottom Section
Categories: 
- Scripting Commands
 - Introduced with Operation Flashpoint: Resistance version 1.80
 - Operation Flashpoint: Resistance: New Scripting Commands
 - Operation Flashpoint: Resistance: Scripting Commands
 - Command Group: Object Manipulation
 - Scripting Commands OFP 1.96
 - Scripting Commands OFP 1.99
 - ArmA: Armed Assault: Scripting Commands
 - Arma 2: Scripting Commands
 - Take On Helicopters: Scripting Commands
 - Arma 3: Scripting Commands