No categories assigned

LUA:EndAutoMount

Revision as of 18:23, 28 January 2016 by Jabantiz (talk | contribs) (Created page with "{{PageHeaderChild|LUA|EndAutoMount}} = LUA Functions: EndAutoMount() = Ends an auto mount for the given player ==== Syntax ==== EndAutoMount(param1) ==== Parameters ==== ; R...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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