Difference between revisions of "velocity"
Jump to navigation
Jump to search
m (VBS2 scripting category removal) |
Lou Montana (talk | contribs) m (version update 1.8 → 1.80) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Command|= | + | {{Command|Comments= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | ofpr | | + | | ofpr |Game name= |
− | |1. | + | |1.80|Game version= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | Return velocity (speed vector) of [[Object#Unit|Unit]] as an array with format [x, 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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | [[ | + | | [[velocity]] vehicleName |Syntax= |
− | |p1= vehicleName: [[Object]] | | + | |p1= vehicleName: [[Object]] |Parameter 1= |
− | | [[Array]] | | + | | [[Array]] |Return value= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | |x1= <code> | + | |x1= <code>_vector = [[velocity]] jeep;</code> |Example 1= |
− | |x2= <code> | + | |x2= <code>[[if]] (([[velocity]] _plane1 [[select]] 2) > 50) [[then]] { [[hint]] "Aircraft is climbing up too fast!"; };</code> |Example 2= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | [[setVelocity]] | | + | | [[setVelocity]], [[velocityModelSpace]], [[setVelocityModelSpace]], [[setVelocityTransformation]], [[speed]] |See also= |
− | |||
}} | }} | ||
Line 34: | Line 34: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
− | [[Category:Scripting Commands| | + | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
− | [[Category:Scripting Commands OFP 1.96| | + | [[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] |
− | [[Category:Scripting Commands ArmA| | + | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] |
− | [[Category:Scripting Commands ArmA2| | + | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] |
+ | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
+ | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
+ | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] |
Revision as of 09:06, 1 June 2018
Hover & click on the images for descriptions
Description
- Description:
- Return velocity (speed vector) of Unit as an array with format [x, y, z].
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
- See also:
- setVelocityvelocityModelSpacesetVelocityModelSpacesetVelocityTransformationspeed
- Groups:
- Uncategorised
Notes
Notes
Bottom Section
Categories:
- Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Operation Flashpoint: Resistance: New Scripting Commands
- Command Group: Uncategorised
- Introduced with Operation Flashpoint: Resistance version 1.80
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters
- Scripting Commands Arma 3