Spring.GetProjectileDirection doesn't seem to exist (using Spring 96)
http://springrts.com/wiki/Lua_SyncedRead says:
Spring.GetProjectileDirection New in version 95.0
( number projectileID ) -> nil | number dir.x, number dir.y, number dir.z
however using it yields:
"attempt to call field 'GetProjectileDirection' (a nil value)"
Spring.GetProjectileDirection does not exist
Moderator: Moderators
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Spring.GetProjectileDirection does not exist
Are you calling it from a widget or a unsynced/synced gadget?
Re: Spring.GetProjectileDirection does not exist
Synced Gadget
Edit: I found taking Spring.GetProjectileVelocity(proID) and normalizing the result works just fine.
Edit: I found taking Spring.GetProjectileVelocity(proID) and normalizing the result works just fine.