generated from Jaysyn/ModuleTemplate
16 lines
327 B
Plaintext
16 lines
327 B
Plaintext
#include "debug"
|
|
|
|
void main() {
|
|
object oPC = GetLastUsedBy();
|
|
object oChair = OBJECT_SELF;
|
|
|
|
if (GetIsPC(oPC)) {
|
|
//debug("sit down...");
|
|
if (GetIsObjectValid(oChair) &&
|
|
!GetIsObjectValid (GetSittingCreature(oChair))) {
|
|
AssignCommand(oPC, ActionSit(oChair));
|
|
}
|
|
}
|
|
|
|
}
|