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:
|
|