1 [
EntityEditorProps(
category:
"GameScripted/CleanSweep", description:
"A character clean sweep component for comunication from client to server.", color:
"0 0 255 255")]
40 [
RplRpc(RplChannel.Reliable, RplRcver.Owner)]
44 if (!playerController)
48 if (!controlledEntity)
51 CharacterControllerComponent controllerComponent = CharacterControllerComponent.Cast(controlledEntity.FindComponent(CharacterControllerComponent));
52 if (!controllerComponent)
55 controllerComponent.ForceDeath();
59 [
RplRpc(RplChannel.Reliable, RplRcver.Owner)]
63 if (!controlledEntity)
66 controlledEntity.SetOrigin(origin);
70 [
RplRpc(RplChannel.Reliable, RplRcver.Owner)]
77 cleanSweep.ShowAreaSelectionUI();
81 [
RplRpc(RplChannel.Reliable, RplRcver.Server)]
88 cleanSweep.SetSwapSides(swapSides);
89 cleanSweep.SetArea(areaID);