vrijdag, januari 27, 2006

A simple sit on chair script

There are basicly two reason why I start off with this script.

1. It's a script 99% of the Persistent World builders need;
2. It's an easy and quick way for me to test my new code box!

//Sit on chair script
void main()
{
object oChair = OBJECT_SELF;
if(!GetIsObjectValid(GetSittingCreature(oChair)))
{
AssignCommand(GetLastUsedBy(), ActionSit(oChair));
}
}

Just put this script in the OnUse of any chair you would like the PC to sit in.