Event tick to stop firing once it is false
Hi Unreal community, I am kind of new to bluepritns and scripting, but I have made node system that checks if an object is visible to the camera and if not it changes the visiblity of said object. I want to use this to make objects appear in places when to player is not looking at them. I can't however for the life of me figure out how to stop the function from running on and keep turning the visiblity of the object off and on. This means it kind of becomes a 50/50 chance for the object to be there. Does anyone have an idea on how to stop this event tick from running once the function returns false once? So the object will always be there after having looked in that area once before? Thanks for reading!
asked Apr 09 '16 at 08:29 PM in Blueprint Scripting
Use a once only node this will run the function once then if something changers it will stop the next loop. send something to it from toggle visibility to the once only to stop it. The other option is to override the condition into the branch node.
answered Apr 09 '16 at 11:25 PM
on the branch drag off condition and type "is visable" and connect the cube to that
answered Apr 10 '16 at 12:18 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here