Log inGet started
Package

Loot.component

Newest version

README.md

heistKit.Loot

One valuable (or a key / sandbag a player needs) and the way it is kept. Put it on any entity, set kind (Heist.lootKinds(), or key / sandbag) and access (open, displayCase, safe, frame, keyDrawer, keyChest, pressurePlate, hiddenPanel). It draws its own art and access prop, offers interactKit's prompt (press or hold on keyboard, gamepad and touch) and runs the minigame on the player working it. Shared state (state, takenBy, picker, ...) is written by the owner. Needs interactKit; makes aiKit noises; a HeistDirector in the scene adds it to the heist. Heist.addLoot / addKey / addSandbag spawn it from code.