setVelocity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETVELOCITY]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETVELOCITY]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETVELOCITY]]


| ofpr |= Game name


<h2 style="color:#000066">'''''vehicle'' setVelocity ''[x, z, y]'''''</h2>
|1.8|= Game version
____________________________________________________________________________________________


| Set [[velocity]] (speed vector) of vehicle. Note: This command will not work for man-type units (soldiers, officers, etc) if they are touching the ground. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| vehicle '''setVelocity''' [x, z, y] |= Syntax


'''vehicle:''' [[Object]]
|p1= vehicle: [[Object]] |= Parameter 1


'''[x, z, y]:''' [[Array]]
|p2= [x, z, y]: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>truck1 setvelocity [20, 0, 0]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.80'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Set [[velocity]] (speed vector) of vehicle.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETVELOCITY]]
'''Note:''' This command will not work for man-type units (soldiers, officers, etc) if they are touching the ground.
[[Category:Scripting Commands OFP 1.96|SETVELOCITY]]
 
[[Category:Scripting Commands ArmA|SETVELOCITY]]
 
'''Example:'''
 
truck1 '''setvelocity''' [20, 0, 0]

Revision as of 00:37, 2 August 2006

Hover & click on the images for description

Description

Description:
Set velocity (speed vector) of vehicle. Note: This command will not work for man-type units (soldiers, officers, etc) if they are touching the ground.
Groups:
Uncategorised

Syntax

Syntax:
vehicle setVelocity [x, z, y]
Parameters:
vehicle: Object
[x, z, y]: Array
Return Value:
Nothing

Examples

Example 1:
truck1 setvelocity [20, 0, 0]

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