18 lines
384 B
C#
Raw Normal View History

2021-12-25 23:45:40 -08:00
using QSB.Messaging;
using QSB.Player;
using QSB.WorldSync;
namespace QSB.Tools.ProbeLauncherTool.Messages
{
internal class PlayerLaunchProbeMessage : QSBMessage
{
public override bool ShouldReceive => QSBWorldSync.AllObjectsReady;
2021-12-25 23:45:40 -08:00
public override void OnReceiveRemote()
{
var player = QSBPlayerManager.GetPlayer(From);
player.ProbeLauncher.LaunchProbe();
}
}
}