Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Sets the group speed mode.

Syntax

Syntax:group setSpeedMode mode
Parameters:
  • group: Object or Group - Affected group.
  • mode: String -  Mode may be one of:
    • "LIMITED" (half speed)
    • "NORMAL" (full speed, maintain formation)
    • "FULL" (do not wait for any other units in formation)
Return Value:Nothing

Examples

Examples:
_groupOne setSpeedMode "LIMITED";

Additional Information

See also: setMaxSpeedLimit, limitSpeed, forceSpeed
Multiplayer:
Problems:

Notes







Posted on 14 Feb 2010
MadRussian
Although setSpeedMode can be called on an individual unit, the entire group will be affected.



Posted on 17 May 2008
Paul-Hewson
In Multiplayer, this command is overwritten by itself to NORMAL or FULLSPEED (i don't know which one, but it's fast move) when you ask the unit to move via script (ex : _unit doMove (getMarkerPos "destination"); ) The solution to solve this problem is to initialize the setSpeedMode after your order the unit to move.



So basically it gives you :

_unit doMove (getMarkerPos "destination");

_unit setSpeedMode "LIMITED";


If you plan to move the unit again after it reaches its destination, you will have to set the speed mode to LIMITED again like i did just above.