Forums » Questions and answers »
A Update trigger
Added by kah yong seow over 1 year ago
Hi guys,
are there any ways to have a update trigger in which a script gets run after every 10 seconds? Thanks, guys.
Cheers,
Sky
Replies (1)
RE: A Update trigger
-
Added by Adrian Shepherd over 1 year ago
Hi Sky,
You can execute a script every 10 seconds through a Timeline.
The IMML would look something like this.
<Timeline Name="Script-Repeat" Enabled="True">
<ExecuteEvent Time="00:00:10" Element="Name-of-Script-goes-here" />
</Timeline>
I've set the Timeline to be enabled once the IMML has finished loading.
You could set Enabled= "False" then enable the timeline through another Script.
scene:getelement('Script-Repeat').enabled = true
Then you could execute this scipt on the mouseclick of an element in the scene.
(1-1/1)