Difference between revisions of "LUA:EndAutoMount"

(Created page with "{{PageHeaderChild|LUA|EndAutoMount}} = LUA Functions: EndAutoMount() = Ends an auto mount for the given player ==== Syntax ==== EndAutoMount(param1) ==== Parameters ==== ; R...")
 
(No difference)

Latest revision as of 18:23, 28 January 2016

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