Initial Upload
Initial Upload
This commit is contained in:
26
_module/nss/cv_rest.nss
Normal file
26
_module/nss/cv_rest.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: cv_rest
|
||||
//:: cv_rest.nss
|
||||
//:: Copyright (c) 2003 Darren Summerwind.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Conversation Rest Script
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Darren Summerwind
|
||||
//:: Created On: 28/9/03
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
// Get Last Speaker
|
||||
object oPC = GetPCSpeaker();
|
||||
// Set "PlayerWantsToRest" to TRUE
|
||||
SetLocalInt(oPC, "PlayerWantsToRest", TRUE);
|
||||
// Clear all actions
|
||||
AssignCommand(oPC, ClearAllActions(TRUE));
|
||||
// Assign Rest
|
||||
AssignCommand(oPC, ActionRest());
|
||||
ExecuteScript("_onplayer_rest",oPC);
|
||||
// Set "PlayerWantsToRest" to FALSE
|
||||
DelayCommand(2.0, SetLocalInt(oPC, "PlayerWantsToRest", FALSE));
|
||||
}
|
Reference in New Issue
Block a user