1
0
EQ2Emu/docs/lua_functions/EndAutoMount.md

489 B

Function: EndAutoMount(Spawn)

Description: Dismounts a player who was auto-mounted via StartAutoMount. Typically called at the end of an automated travel route or upon leaving the area where auto-mount is enforced.

Parameters:

  • player (Spawn) - Spawn object representing player.

Returns: None.

Example:

-- From ZoneScripts/Antonica.lua
function GriffonTower(Zone, Spawn)
	if IsPlayer(Spawn) and IsOnAutoMount(Spawn) then
		EndAutoMount(Spawn)
	end