Skip to main content

Script-Focus

script-focus is executed when a marker is focused (the player is within the marker's triggerRange).

Default Parameters

ParameterTypeDescription
markerMarkerA reference to the marker firing the script.
isFocusedbooleanIndicates if the marker was just focused (true) or unfocused (false).

Usage

pack.xml
<marker ... script-focus="DoSomethingWhenMarkerIsFocused(1)">
<marker ... script-focus="DoSomethingWhenMarkerIsFocused(2)">