public static void UpdateGunShot(MyEntity physObject, MyTrailerGunsShotTypeEnum gunShot) { // This method will be called even on not-tracker objects, so here we check if we need to store data about this one MyPhysObjectTrackedTickData tickData = InsertActiveTick(physObject); if (tickData != null) { tickData.GunShot = gunShot; } }