Page 1 of 1

AimWeaponX params (heading, pitch) as a LUA get function.

Posted: 23 Jul 2008, 10:02
by Pendrokar
I really need this for Kustorion weaponsystem.
I tried making invisible units to target the units that some other unit needs so it would target right. [EDIT] Problem was that I have to wait for the call-in.
What this function would do is calculate the heading and pitch and return it.
Something like this:
Spring.CalculateAim(unitID, piecenum, WeaponDef, targetID|{x,y,z}) -> (heading, pitch)
--(unitID->unit from which piece to target, piecenum, WeaponDef(can be either beamweapon, hitscan, ballistic), targetID location or a x,y,z table)