DCS func setSpeed

From DCS World Wiki - Hoggitworld.com
Revision as of 07:12, 17 March 2022 by Grimes (talk | contribs) (Created page with "{{Template:dcs_funcs |fName= setSpeed |vNum= 2.7.11 |par1= Controller |par2= |desc= Sets the controlled group to go the specified speed in meter...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: setSpeed Added with: 2.7.11
Member Of: Controller
Syntax: function Controller.setSpeed(Class self , number speed , boolean keep)
Description: Sets the controlled group to go the specified speed in meters per second.

Optional boolean keep when set to true will maintain that speed on passing waypoints. If no present or false the controlled group will return to the speed as defined by their route.


Return Value: function
Return Example: none
Examples: The following will set the tanker to fly slower at a speed an A-10 can achieve.
   Group.getByName("KC-135"):getController:setSpeed(125)
Related Functions: Controller: setTask, resetTask, pushTask, popTask, hasTask, setCommand, setOption, setOnOff, setAltitude, setSpeed, knowTarget, isTargetDetected, getDetectedTargets
Notes: