Amon_PRC8/_module/nss/action_sit_bench.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

18 lines
427 B
Plaintext

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