Some help with timers

Freeform discussion about anything related to modding Transcendence.
Post Reply
Drako Slyith
Fleet Officer
Fleet Officer
Posts: 1036
Joined: Wed Feb 03, 2010 4:28 am
Location: Researching how to make St. Kats star go supernova.
Contact:

I'm making a mod and I'm having trouble figuring out how to use a timer in an overlay. I need to have a timer of about 15 ticks repeating launched by the overlay. Is there any way to do this?
Image
Image
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

The only repeating event you have available on overlays is OnUpdate, and that runs constantly every 30 ticks. The only type that can have variable repeating events in game are objects. So, you could add an event handler to the object that overlay is on, and then start a timer. Or, if you have control over the object, just hardcode the event onto it.
Post Reply