New Lua function: HasClearFiringLine
Posted: 06 Apr 2012, 15:43
http://springrts.git.sourceforge.net/gi ... b6;hb=HEAD
Could I request that HaveFreeLineOfFire or TryTarget become callable as a Lua function?
More precisely, I would like a function that returns true/false depending on whether a specific unit's specific weapon can fire at a target point.
EDIT:
Ability to accept hypothetical units would be VERY nice. (unitID replaced with unitDefID and x/y/z unit position)
This would greatly help unit AI determine good targets as well as tower placement for full AIs.
Could I request that HaveFreeLineOfFire or TryTarget become callable as a Lua function?
More precisely, I would like a function that returns true/false depending on whether a specific unit's specific weapon can fire at a target point.
EDIT:
Ability to accept hypothetical units would be VERY nice. (unitID replaced with unitDefID and x/y/z unit position)
This would greatly help unit AI determine good targets as well as tower placement for full AIs.