Interactable objects in world
Posted: Wed Jan 10, 2024 10:52 am
Hi,
I'm creating a msall adventure game that has interactable objects within the world, when the player clicks on certain objects ther will be a line or two of text given about them. In order to not create a new conversation with every object, what would be the best way of organising and going through this?
So far I have tried creating a placeholder actor called Interactive Item, then setting the actor's name to the object's name in Dialogue Actor script on the object. Then in the database i'm checking if the name equals the object name to play the right dialogue entry, but unfortunately it isn't working. I may have my understanding completely wrong.
I'm creating a msall adventure game that has interactable objects within the world, when the player clicks on certain objects ther will be a line or two of text given about them. In order to not create a new conversation with every object, what would be the best way of organising and going through this?
So far I have tried creating a placeholder actor called Interactive Item, then setting the actor's name to the object's name in Dialogue Actor script on the object. Then in the database i'm checking if the name equals the object name to play the right dialogue entry, but unfortunately it isn't working. I may have my understanding completely wrong.