public override void Tick() { base.Tick(); if (turretGun == null) { turretGun = ThingMaker.MakeThing(DefDatabase<ThingDef>.GetNamed("Component_TurretGun"), (ThingDef)null) as Component_TurretGun; turretGun.Position = (this.Position.ToVector3() + componentOffset).ToIntVec3(); turretGun.SpawnSetup(); turretGun.SetFaction(Faction.OfColony); } turretGun.Position = (this.Position.ToVector3() + componentOffset).ToIntVec3(); }