15 lines
337 B
Plaintext
15 lines
337 B
Plaintext
void main()
|
|
{
|
|
object oPlayer = GetLastUsedBy();
|
|
object oChair;
|
|
|
|
if (GetIsPC(oPlayer))
|
|
{
|
|
oChair = GetNearestObjectByTag("Chair", oPlayer, 0);
|
|
if (GetIsObjectValid(oChair) && !GetIsObjectValid(GetSittingCreature(oChair)))
|
|
{
|
|
AssignCommand (oPlayer, ActionSit (oChair));
|
|
}
|
|
}
|
|
}
|