03-13-2014, 01:44 AM
Just like with the cChunkStay I think we should also have an cLuaProjectile. You can create an projectile with it with custom functions like OnHitEntity and OnHitSolidBlock.
the cWorld function would look something like this:
If the callback returns true the entity or block would be ignored and the projectile would fly through it.
Any thoughts?
the cWorld function would look something like this:
cWorld:CreateLuaProjectile(a_X, a_Y, a_Z, ProjectileKind, a_Creator, a_Speed, a_OnHitSolidBlockCallback, a_OnHitEntityCallback)
If the callback returns true the entity or block would be ignored and the projectile would fly through it.
Any thoughts?