NWNDS/nwnds_module/ar_s3_cushion.nss

14 lines
348 B
Plaintext
Raw Normal View History

// 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));
}
}
}