Trigger once condition in JavaScript


#1

So in the event system you have the Trigger once condition. its allow you to well trigger your condition once while true what i am asking is how to trigger once an if condition in JavaScript?
thank you.


#2

Put your JavaScript event as a sub event of an event having a Trigger Once condition.
Otherwise, you’ll have to redo it by yourself in JavaScript using a variable stored somewhere on the scene.


#3

Ok thank you i will try it.