Page 1 of 1

Turret rotation limits in Lua

Posted: 11 May 2011, 06:18
by AkhIL
Units such as Arm Fido has limitation in turret rotation.
How I can check this limitation in Lua?

Re: Turret rotation limits in Lua

Posted: 11 May 2011, 06:24
by knorke
There is no such thing as "limitation in turret rotation", that is purely in the unit animation script.

I guess what you want is WeaponMainDir & MaxAngleDif, it limits the cone a weapon can target in.
http://springrts.com/wiki/Units:WeaponMainDir

don't know how to read them though.