Initial commit. Updated release archive.
This commit is contained in:
14
_module/nss/sitbench.nss
Normal file
14
_module/nss/sitbench.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
void main()
|
||||
{
|
||||
object oPlayer = GetLastUsedBy();
|
||||
object oChair;
|
||||
|
||||
if (GetIsPC(oPlayer))
|
||||
{
|
||||
oChair = GetNearestObjectByTag("Bench", oPlayer, 0);
|
||||
if (GetIsObjectValid(oChair) && !GetIsObjectValid(GetSittingCreature(oChair)))
|
||||
{
|
||||
AssignCommand (oPlayer, ActionSit (oChair));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user