Trigger once condition in JavaScript

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.

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.

1 Like

Ok thank you i will try it.