Resolved Checking for loot piles

Discussion in 'Developer Support' started by torque0, Nov 1, 2015.

  1. I have a feeling this will be something related to varps ? But i'd like to know how to detect different sized loot piles e.g coins or arrows, if "varps" is correct can someone give me a point in the right direction <3
    --- Double Post Merged, Nov 2, 2015, Original Post Date: Nov 1, 2015 ---
    For anyone who has the same question, its possible by simply doing:

    Code (Text):
    1. if (ammo != null) {
    2. if (ammo.getQuantity() > 8) {
    3.  
    4. }
    5. }
    I think this will work with coins in the same way ( only tested with arrows etc). Be sure to check if ammo (GroundItem) is null
     

Share This Page

Loading...