setSpeedMode

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Set group speed mode. Mode may be one of:

  • "LIMITED" (half speed)
  • "NORMAL" (full speed, maintain formation)
  • "FULL" (do not wait for any other units in formation)

Syntax

Syntax:
UnitOrGroup setSpeedMode "mode"
Parameters:
UnitOrGroup : Unit or Group
mode: String
Return Value:
Nothing

Examples

Example 1:
_groupOne setSpeedMode "LIMITED"

Additional Information

Multiplayer:
Behaviour unknown.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

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.

Bottom Section

Personal tools
Buy ArmA now!