HiddenTradition_PRC8/_module/nss/as_use_chest.nss
2024-06-20 15:47:42 -04:00

18 lines
517 B
Plaintext

void main()
{
if (GetIsObjectValid(GetSittingCreature(GetNearestObjectByTag("Chest4"))) == FALSE)
{
object oPC = GetLastUsedBy();
//vector vCamp = GetPosition(GetObjectByTag("Campfire"));
//these commented-out lines are from the original use of this script,
//to have off-duty sentries sit around a fire at a checkpoint
//AssignCommand(oPC,SetFacingPoint(vCamp));
AssignCommand(oPC,ActionSit(GetNearestObjectByTag("Chest4")));
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_SIT_CHAIR,1.0,3000.0));
}
}