UW2_PRC8/_module/nss/startresting.nss

17 lines
380 B
Plaintext
Raw Permalink Normal View History

2023-09-25 20:24:01 -04:00
void main()
{
object oPC = GetPCSpeaker();
2023-09-25 20:24:01 -04:00
int iHD = GetHitDice(oPC);
2023-09-25 20:24:01 -04:00
float fDelay = 10.5 + (IntToFloat(iHD)/2);
//Tell the OnPlayerRest Event Script we can rest...
SetLocalInt(oPC, "REST_STARTED", 1);
//Make the PC start the XP2 Rest system..
AssignCommand(oPC, ActionRest(TRUE));
DelayCommand(fDelay, SetLocalInt(oPC, "REST_STARTED", 0));
2023-09-25 20:24:01 -04:00
}