How do I trigger a follower and keep it going?
I want an object to pop up and begin floating along with the player when they approach it, and set up the trigger zone, but when they leave the trigger zone, it stops following. How can I have it wait for them to approach, but also follow out of the trigger zone?
And is there a way to make it float at a certain height?
Thanks
-
For floating at a certain height, you can disable the y axis following so it only follows x/z?
Are you emitting the object or just connecting the output of the trigger zone to the follower on the object? I think i’d Use the trigger zone to trigger an emitter, with the following object in the emitter. Then when emitted the object won’t care about the trigger zone -
To make something "stay on," you can add a counter. Connect the trigger zone to the counter increment. Then connect the "full" counter output to the "follow" behaviour of the object.
(Counters default to being "full" at 1. So the first time it's incremented, it'll be full forever more... unless you decrement it later.) -
Thanks for the suggestions; I’ll experiment with both of these. Sounds like they should work well.
Please sign in to leave a comment.