Advertisement
goldnera

Object Locator Inventory

May 21st, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GetText 0.91 KB | Gaming | 0 0
  1. /Downloads/gen7/scripts/InventoryChecker.apl/
  2.  
  3. # Script checks for objects in inventory
  4. objectsLocateInventory = (locateObjects), true
  5. {
  6.     objects.Locate = (objects.localInventory.object(Object(inventory))), getLocalObjects
  7.     {
  8.         inventory.FindObjects = true, (checkForObjects = inventoryObjects(WhenPickUp_listPickedObject = true))
  9.         object.Locate = true, (onPickup) = checkForObjects.pickup (defineObject).ListObjectOnPickup = true
  10.         {
  11.             catchObject.list_object = (defineObject), localobjects, toInventory (objectOnPickup) = defineObject
  12.              obj.LocalObjects.pickUp = (defineObject), listToInventory = true (showSelectionInventory)
  13.             addPermObject = true, (inventory).selection.pickUp_ (object) list_to-inventory = true, (listToInventory)
  14.             # Sees if object is able to get picked up and player picks up with button.
  15.            
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement