2025-07-03 12:20 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002877Spring engineGeneralpublic2012-03-24 01:02
ReporterDeadnight Warrior 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version85.0 
Target VersionFixed in Version 
Summary0002877: Changing of unit's max velocity is no longer possible
DescriptionNone of the following seems to have any effect when trying to change a tank's maxSpeed

LUA:
Spring.SetUnitCOBValue(unitID, 75, speed)
Spring.MoveCtrl.SetGroundMoveTypeData(unitID,"maxSpeed", speed)

BOS/COB:
set MAX_SPEED to speed;
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0003016resolvedKloot changing unit speed does not work in script.Create() anymore 
+Relationships

-Notes

~0008022

Google_Frog (reporter)

"Spring.MoveCtrl.SetGroundMoveTypeData(unitID,"maxSpeed", speed)"

I know this works for speeds less than the speed set in the unitdef. I haven't tested greater speeds.

~0008024

Google_Frog (reporter)

I have confirmed that lua settable speed is capped at unitdef maxVelocity. To workaround give the unit high maxVelocity and set it's normal speed in it's script.
+Notes

-Issue History
Date Modified Username Field Change
2011-12-26 22:31 Deadnight Warrior New Issue
2011-12-27 00:58 Google_Frog Note Added: 0008022
2011-12-27 04:51 Google_Frog Note Added: 0008024
2012-01-31 16:05 Kloot Status new => closed
2012-01-31 16:05 Kloot Resolution open => no change required
2012-03-14 03:10 abma Relationship added related to 0003016
2012-03-24 01:01 Kloot Status closed => feedback
2012-03-24 01:01 Kloot Resolution no change required => reopened
2012-03-24 01:02 Kloot Status feedback => resolved
2012-03-24 01:02 Kloot Resolution reopened => fixed
2012-03-24 01:02 Kloot Assigned To => Kloot
+Issue History