Skip to main content

Script-Tick

script-tick is executed once every in-game tick (typically every frame, but potentially less depending on configuration), providing the marker as context.

warning

Because this executes on every game tick, it can impact FPS significantly if you aren't careful with your logic!

Default Parameters:

ParameterTypeDescription
markerMarkerA reference to the marker firing the script.
gameTimeGameTimeA reference to the current gameTime object.

Usage

pack.xml
<marker ... script-tick="DoSomethingEveryTick(1)">