View Issue Details

IDProjectCategoryView StatusLast Update
0003106Spring engineGeneralpublic2012-06-07 16:05
Reporterluckywaldo7 Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version88.0 
Fixed in Version89.0 
Summary0003106: trouble with GetUnitVelocity
DescriptionI'm trying to get unit speed as described by this forum thread: http://springrts.com/phpbb/viewtopic.php?f=21&t=25308

and this commit that is mentioned: https://github.com/spring/spring/commit/3089a9da1769d3d9b1c42b74c5d29c852495240d

I can't figure out how to get it to to return "speed.Length()"

I could just be silly, but it looks like this line:
"if (lua_isboolean(L, 1) && lua_toboolean(L, 1)) {"

wants to see a "true" in GetUnitVelocity where the unitID should go.

If it in fact works right and I'm just looking at the code right, help me out with the correct usage so I can update the wiki.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2012-06-07 16:05

developer   ~0008741

was a typo, thanks

Issue History

Date Modified Username Field Change
2012-06-07 03:06 luckywaldo7 New Issue
2012-06-07 16:05 Kloot Note Added: 0008741
2012-06-07 16:05 Kloot Status new => resolved
2012-06-07 16:05 Kloot Fixed in Version => 89.0
2012-06-07 16:05 Kloot Resolution open => fixed
2012-06-07 16:05 Kloot Assigned To => Kloot