cLuaProjectile
#1
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:
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?
Reply
Thanks given by:


Messages In This Thread
cLuaProjectile - by NiLSPACE - 03-13-2014, 01:44 AM
RE: cLuaProjectile - by xoft - 03-13-2014, 01:58 AM
RE: cLuaProjectile - by NiLSPACE - 03-13-2014, 02:01 AM
RE: cLuaProjectile - by xoft - 03-13-2014, 02:01 AM



Users browsing this thread: 1 Guest(s)