14 lines
341 B
Plaintext
14 lines
341 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));
|
|
}
|
|
}
|
|
}
|