local code, objid = World:spawnProjectileByDir(shooter, itemid, x, y, z, dirx, diry, dirz, speed) if code == ErrorCode.OK then print('Execution success', code, objid ) else print('Execution failure') end