Aller au contenu

Photo

Possible to add decay timer to loot bags?


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
AncientWolfgr

AncientWolfgr
  • Members
  • 15 messages

Not fond of a "area cleanup" script as this is for a PW.

 

Any ideas folks?



#2
Dann-J

Dann-J
  • Members
  • 3 161 messages

An area HB script could scan that particular area for loot bags or lootable corpses (thankfully they all have the same tag - "BodyBag"). If it finds any without a particular local variable set on them, it could set a 'useby-date' on them. If it finds any with an expired useby-date, it could destroy their contents (which will automatically destroy the body bag). Both checks could be done within the same loop.

 

I've used the LootInventory() function in  x0_i0_corpses to deal with stray loot bags / lootable corpses, by transferring the items to another object (like a store). Or you could loop through the inventory and destroy items completely.