HoS_PRC8/_mod/_module/nss/unit_inv_hb.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

11 lines
297 B
Plaintext

// unit_inv_hb
void main()
{
object oMe=OBJECT_SELF;
object oPC=GetLocalObject(oMe,"oPC");
if (GetArea(oPC)!=GetArea(oMe)||GetDistanceBetween(oMe,oPC)>4.0)
{ // return inventory - destroy chest
ExecuteScript("unit_inv_close",oMe);
} // return inventory - destroy chest
}