No categories assigned

LUA:EndAutoMount

LUA - EndAutoMount

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


LUA Functions: EndAutoMount()

Ends an auto mount for the given player


Syntax

EndAutoMount(param1)


Parameters

Required - param1 (Spawn)
param1 is the player to end an auto mount for


Usage

function Stable(Zone, Player)
     if IsPlayer(Player) and IsOnAutoMount(Player) then
          EndAutoMount(Player)
     end
end

This function will end the players current auto mount if they are on one


Notes

Can only be used on a player