4 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
6 RadioBroadcastComponent broadcastComponent = GetRadioBCComponent();
7 if (broadcastComponent)
9 if(broadcastComponent.GetState())
10 broadcastComponent.EnableRadio(
false);
12 broadcastComponent.EnableRadio(
true);
17 override bool CanBePerformedScript(IEntity user)
19 RadioBroadcastComponent broadcastComponent = GetRadioBCComponent();
20 if (broadcastComponent)
27 override bool CanBroadcastScript()
33 override bool GetActionNameScript(out
string outName)
35 RadioBroadcastComponent broadcastComponent = GetRadioBCComponent();
37 if (broadcastComponent.GetState())
38 outName =
"#AR-UserAction_TurnOff";
40 outName =
"#AR-UserAction_TurnOn";