How to heal when holding a gadget

How to regenerate health when holding a item/gadget,
because I need help with my world that uses this mechanic briefly but I don’t know how/to make such a simple mechanic.
So does anyone know how to explain step by step :red_question_mark:
Side note: don’t use pictures pls cause the pictures cant load correctly on my laptop

1 Like

Use a med kit…

1 Like

no like, I mean like how to regenerate when holding a item like a blaster or some sort

1 Like

regenerate health when holding a item

You can make a universal overtime health system

Try the lifecycle device and see if that detects it.

Ok how bout this (If you can) When the player takes out the blaster it triggers a trigger loop connected to a health granter and when the player puts away the blaster the trigger loop stops

let me try that for a sec

It’s impossible to check for when you equip a gadget, but maybe improvise to gadget fired or on knockout?

1 Like

Yea it didn’t work :sad_but_relieved_face:

The lifecycle can listen to you firing a gadget or knockout, perhaps every time you fire it grants you like 5 health? Or every knockout increases your Regen amount?

First you’d need to identify when the gadget is brought out. Your best bet is to use the WHEN GADGET FIRED. But, I don’t think there is a way to check if you’re not currently holding it. At best, you’d need to use a counter and when the counter is over to delete the item from inventory, and maybe broadcast to stop giving health?

1 Like

For now, it is not possible to detect whether the player is holding a gadget, but it is possible to detect if a player has a specific item in their inventory, perhaps try to use an alternative way to make this system?

You can’t do that.

i know, it was smthing to try and see if you could…