Amon_PRC8/_module/nss/action_sit_bench.nss

18 lines
427 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
//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));
}
}
}