PoA_PRC8/module/nss/ww_sit.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

20 lines
506 B
Plaintext

//--CHAIR SIT: onUse (placeables)
//-- i got sick of sitting facing the wrong way
//-- so, this does a move to location first
//-- and works more or less most of the time.
//-- (doesnt work well with invis objs on tile benches)
//-- bloosong
void main()
{
object oChair = OBJECT_SELF;
if(!GetIsObjectValid(GetSittingCreature(oChair)))
{
AssignCommand (GetLastUsedBy(), ActionMoveToLocation(GetLocation(oChair)));
AssignCommand(GetLastUsedBy(), ActionSit(oChair));
}
}