setSpeedMode – Talk

From Bohemia Interactive Community
Revision as of 01:28, 6 April 2021 by Lou Montana (talk | contribs) (Text replacement - " <dd class="notedate">" to " <dt><dt> <dd class="notedate">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notes needing confirmation

Posted on 17 May 2008
In Multiplayer, this command is overwritten by itself to NORMAL or FULL (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.