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