Page 1 of 1

how do you make a unit drive backwards?

Posted: 20 Aug 2010, 03:13
by smartie
from way back in version 0.80.1.0

0.80.0.0:
Engine / Simulation:
- units can now move backwards

native forwards/backwards movement has been in spring for a while, but I can't find anything explaining how to use it. Anyone know how to use this?

Re: how do you make a unit drive backwards?

Posted: 20 Aug 2010, 04:00
by FLOZi

Code: Select all

	speed  = udTable.GetFloat("maxVelocity",  0.0f) * GAME_SPEED;
	rSpeed = udTable.GetFloat("maxReverseVelocity", 0.0f) * GAME_SPEED;
From UnitDef.cpp :wink:

Re: how do you make a unit drive backwards?

Posted: 20 Aug 2010, 09:03
by smartie
thanks a million :)

Re: how do you make a unit drive backwards?

Posted: 20 Aug 2010, 10:42
by Forboding Angel
Don't set it too high, otherwise the units will drive backwards in somewhat awkward situations.