/// <summary> /// Non-deterministic /// </summary> /// <returns>The create and fire.</returns> /// <param name="curProj">Current proj.</param> /// <param name="projCode">Proj code.</param> /// <param name="position">Position.</param> /// <param name="direction">Direction.</param> /// <param name="gravity">If set to <c>true</c> gravity.</param> public static LSProjectile NDCreateAndFire(string projCode, Vector3d position, Vector3d direction, bool gravity = false) { var curProj = RawCreate(projCode); int id = NDProjectileBucket.Add(curProj); curProj.Prepare(id, position, (a) => false, (a) => false, (a) => { }, false); curProj.InitializeFree(direction, (a) => false, gravity); ProjectileManager.Fire(curProj); return(curProj); }
public void FireProjectile(LSProjectile projectile) { ProjectileManager.Fire(projectile); }