18 lines
577 B
C#
Raw Normal View History

2021-12-14 22:53:53 +00:00
using QSB.Player;
2022-03-02 19:46:33 -08:00
namespace QSB.Tools.ProbeLauncherTool;
2023-07-28 19:49:30 +01:00
public static class ProbeLauncherCreator
{
2022-03-02 19:46:33 -08:00
internal static void CreateProbeLauncher(PlayerInfo player)
{
2022-03-02 19:46:33 -08:00
var REMOTE_ProbeLauncher = player.CameraBody.transform.Find("REMOTE_ProbeLauncher").gameObject;
2022-03-02 19:46:33 -08:00
var REMOTE_Props_HEA_ProbeLauncher = REMOTE_ProbeLauncher.transform.Find("Props_HEA_ProbeLauncher");
2022-03-02 19:46:33 -08:00
var tool = REMOTE_ProbeLauncher.GetComponent<QSBProbeLauncherTool>();
tool.Type = ToolType.ProbeLauncher;
tool.ToolGameObject = REMOTE_Props_HEA_ProbeLauncher.gameObject;
tool.Player = player;
}
}