4 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
6 if (!pOwnerEntity || !pUserEntity)
15 lightsState = lightManager.GetLightsState(
ELightType.Presence);
17 if (RplSession.Mode() != RplMode.Client)
18 lightsState = !lightsState;
20 lightManager.SetLightsState(
ELightType.Presence, lightsState);
27 override bool GetActionNameScript(out
string outName)
34 prefix = actionInfo.GetName() +
" ";
36 if (lightManager && lightManager.GetLightsState(
ELightType.Presence))
37 outName = prefix +
"#AR-UserAction_State_Off";
39 outName = prefix +
"#AR-UserAction_State_On";