Turret rotation limits in Lua

Turret rotation limits in Lua

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
AkhIL
Posts: 2
Joined: 08 May 2011, 19:21

Turret rotation limits in Lua

Post by AkhIL »

Units such as Arm Fido has limitation in turret rotation.
How I can check this limitation in Lua?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Turret rotation limits in Lua

Post 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.
Post Reply

Return to “Lua Scripts”