LoT_PRC8/_module/nss/startlagmeasure.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

20 lines
616 B
Plaintext

void main()
{
object oDevice=GetObjectByTag("LagReportingDevice");
int nFlag=GetLocalInt(oDevice, "lagmeasure");
if (nFlag==1)
{
DeleteLocalInt(oDevice, "lagmeasure");
DeleteLocalInt(oDevice, "lagsum");
DeleteLocalInt(oDevice, "occurrence");
DeleteLocalInt(oDevice, "lastsec");
ActionSpeakString("Switched Lag Measure Device off");
}
if (nFlag==0)
{
SetLocalInt(oDevice, "lagmeasure", 1);
ActionSpeakString("Switched Lag Measure Device on");
}
AssignCommand(OBJECT_SELF,ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
}