Jump to content
Sign in to follow this  
Cernu

How to attach a game logic to an item template ?

Recommended Posts

I would like to destroy a templated spawned item after some time. So far I use the delay function on create. However, If the player is interacting with the item, I would like to stop the delay which, afaik, is impossible. So I would like to spawn a time trigger along with the item, so I have more control on time, and the timre trigger be linked somehow to its parent (like a child node in godot...)

Share this post


Link to post
Share on other sites

Kindda solved. I am using arrays, and storing the items into arrays. It makes the cut for my custom gathering system (time tied)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×