[Solved] How to use "Trigger once" correctly in js

Hello greetings.

I would like to know how to use “Trigger Once” in JavaScript, since I have been looking for a way to find how to use it for days and I have not been able. I would like to know if you can tell me how to use it correctly. I have read the recommendation that it is better to use the + condition once, but I want to find the way to use it in js. Thanks in advance.

And if there are writing errors, I apologize, I do not speak English very well, and I have used the translator hahaha, thanks again.

if(runtimeScene.getOnceTriggers().triggerOnce("myTriggerOnceUniqueID")) doSomething()


I am using a translator. :smile:
Thank you very much, I have solved it.