Skip to content

Monitor Players Global

ρMain edited this page Feb 27, 2018 · 1 revision

Want to monitor players and perform a custom script?

That's too possible, but use this function only if the other functions in the shared-api are too restrictives for the feature you want to implement.

  • Callback prototype: function(object, name, x, y, z);
function RegisterAdvancedCallback(enabled, filters, callback);

-- The defined callback is going to make you move to a tremor totem found in the map
RegisterAdvancedCallback(true, nil, 
	function(object, name, x, y, z)
		if name == "Tremor Totem" then
			MoveTo(x, y, z)
		end
	end
)
Clone this wiki locally