User Tools

Site Tools


modding:xml:game_seconds

This is an old revision of the document!


FIXMESo, how are ticks and game seconds used in modding again?

Most of the time, I think always in script functions, time is expressed in ticks. Just to be annoying, there are some device attributes like shield regen that are specified in game seconds or 'per 180 ticks' instead…

Also, note that some events like <OnUpdate> don't mention how many ticks pass before they are called again. For <OnUpdate>, it's usually 30 ticks, and <OnUpdate> on overlays is 20 ticks IIRC.

Overlays is 15, I only remember because i've made realtime countdowns with them, and it's slower on items on npcs (or there's a seperate onnpcupdate, I forget…)

In Transcendence, a game second is a unit of time measurement. An actual second is equivalent to 30 ticks, which in turn is equivalent to 60 game seconds.

modding/xml/game_seconds.1346569239.txt.gz · Last modified: 2014/12/27 04:40 (external edit)