public override void OnTargeted(Mooege.Core.GS.Player.Player player, TargetMessage message) { World world = this.World.Game.GetWorld(this.Destination.WorldSNO); if (world == null) { Logger.Warn("Portal's destination world does not exist (WorldSNO = {0})", this.Destination.WorldSNO); return; } Actor startingPoint = world.GetActorByTag(this.Destination.StartingPointActorTag); if (startingPoint != null) player.TransferTo(world, startingPoint.Position); else Logger.Warn("Portal's tagged starting point does not exist (Tag = {0})", this.Destination.StartingPointActorTag); }
public override void OnTargeted(Mooege.Core.GS.Player.Player player, TargetMessage message) { World world = this.World.Game.GetWorld(this.Destination.WorldSNO); if (world != null) player.TransferTo(world, this.TargetPos); else Logger.Warn("Portal's destination world does not exist (WorldSNO = {0})", this.Destination.WorldSNO); }