PWE_PRC8/_module/nss/sit_any.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

14 lines
350 B
Plaintext

void main()
{
object oPlayer = GetLastUsedBy ();
object oChair;
if (GetIsPC (oPlayer))
{
oChair = GetNearestObject (OBJECT_TYPE_PLACEABLE, oPlayer, 0);
if (GetIsObjectValid(oChair) && !GetIsObjectValid (GetSittingCreature (oChair)))
{
AssignCommand (oPlayer, ActionSit (oChair));
}
}
}