void main()
{
object oPC = GetLastUsedBy();
object oTarget = GetNearestObjectByTag("Chair",oPC,1);

AssignCommand(oPC,ActionSit(oTarget));
}