Hey there, I am looking to get started on writing an event plugin for Event Manager, and I need some assistance.
I need to figure out how to perform the following functions:
If anyone could help me figure out how these could be achieved, I'd be very grateful.
- Spawn a Wooden Lock with a specific "key code" attached to a specific door.
- Spawn a Key item with a specific "key code" (in a player inventory or in a container of some kind, eg: box, stocking, furnace, fireplace, etc. Anything that can hold items in an inventory).
- Track that Key item after it is looted (be able to know which player is holding it, if the player dies with the key and their body/bag despawns.)
- Be able to remove that Key item from container, player inventory, or corpse inventory.
Need help with plugin (Key Locks & Items/Inventory)
Discussion in 'Rust Development' started by TermNet, Jan 30, 2018.