void main() { object oPC = GetPCSpeaker(); //Tell the OnPlayerRest Event Script we can rest... SetLocalInt(oPC, "REST_STARTED", 1); //Make the PC start the XP2 Rest system.. AssignCommand(oPC, ActionRest(FALSE)); }