Module commit
Module commit.
This commit is contained in:
11
_module/nss/tb_restcampfire.nss
Normal file
11
_module/nss/tb_restcampfire.nss
Normal file
@@ -0,0 +1,11 @@
|
||||
void main()
|
||||
{
|
||||
object oPC=GetLastUsedBy();
|
||||
SetLocalInt(oPC, "PlayerWantsToRest", TRUE);
|
||||
if(GetLocalInt(oPC,"restcycle")==0)
|
||||
{
|
||||
SetLocalInt(oPC,"restcycle",1);
|
||||
}
|
||||
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_SIT_CROSS,1.0,240.0));
|
||||
DelayCommand(2.5,AssignCommand(oPC,ActionRest()));
|
||||
}
|
||||
Reference in New Issue
Block a user