public static void Add(Vector3 position, Vector3 initialVelocity, Vector3 direction, MyMwcObjectBuilder_SmallShip_Ammo usedAmmo, MySmallShip ignoreMinerShip) { MyCannonShot newMissile = m_missiles.Allocate(); if (newMissile != null) { newMissile.Start(position, initialVelocity, direction, usedAmmo, ignoreMinerShip); } }
// Update active missiles. If missile dies/timeouts, remove it from the list. public static void Remove(MyCannonShot item) { m_missiles.Deallocate(item); }