setVelocityModelSpace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[Cc]ategory:[ _]?Arma[ _]3:[ _]([^|]*)[ _]?\|.*\]\]" to "{{GameCategory|arma3|$1}}")
m (Some formatting)
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.68


|1.68|Game version=
|arg= local
|arg= local |Multiplayer Arguments=
|eff= global
|eff= global |Multiplayer Effects=


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation
____________________________________________________________________________________________


| Sets the velocity (speed vector) of the given vehicle relative to its model. |DESCRIPTION=
|descr= Sets the velocity (i.e. speed) vector of the given vehicle relative to its model.
____________________________________________________________________________________________


| vehicle '''setVelocityModelSpace''' [x, y, z] |SYNTAX=
{{Feature|important|Since {{GVI|arma3|2.06}}, each velocity component is limited to ±5000 m/s.}}


|p1= vehicle: [[Object]] |PARAMETER1=
|s1= vehicle [[setVelocityModelSpace]] velocity
|p2= [x, y, z]: [[Array]] - relative direction vector  |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
|p1= vehicle: [[Object]]


|p2= velocity: [[Array]] format [[Vector3D]] - relative velocity vector


|x1= <code>car [[setVelocityModelSpace]] [0, 10, 0]; //pushes car forward</code>|EXAMPLE1=
|r1= [[Nothing]]


____________________________________________________________________________________________
|x1= <sqf>MyCar setVelocityModelSpace [0, 10, 0]; // Pushes MyCar forward.</sqf>


| [[velocityModelSpace]], [[velocity]], [[setVelocity]], [[setVelocityTransformation]], [[speed]] |SEEALSO=
|seealso= [[velocityModelSpace]] [[velocity]] [[setVelocity]] [[setVelocityTransformation]] [[speed]] [[disableBrakes]] [[brakesDisabled]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New_Scripting_Commands_List}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 20:48, 13 October 2023

Hover & click on the images for description

Description

Description:
Sets the velocity (i.e. speed) vector of the given vehicle relative to its model.
Since Arma 3 logo black.png2.06, each velocity component is limited to ±5000 m/s.
Groups:
Object Manipulation

Syntax

Syntax:
vehicle setVelocityModelSpace velocity
Parameters:
vehicle: Object
velocity: Array format Vector3D - relative velocity vector
Return Value:
Nothing

Examples

Example 1:
MyCar setVelocityModelSpace [0, 10, 0]; // Pushes MyCar forward.

Additional Information

See also:
velocityModelSpace velocity setVelocity setVelocityTransformation speed disableBrakes brakesDisabled

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