14 lines
348 B
Plaintext
14 lines
348 B
Plaintext
// the following script will allow the PC to sit in a chair
|
|
void main()
|
|
{
|
|
object oPlayer = GetLastUsedBy();
|
|
object oChair = OBJECT_SELF;
|
|
if (GetIsPC(oPlayer))
|
|
{
|
|
if (GetIsObjectValid(oChair) && !GetIsObjectValid (GetSittingCreature(oChair)))
|
|
{
|
|
AssignCommand(oPlayer, ActionSit(oChair));
|
|
}
|
|
}
|
|
}
|