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)); } }