Difference between revisions of "LUA:IsOnAutoMount"

(Created page with "{{PageHeaderChild|LUA|IsOnAutoMount}} = LUA Functions: IsOnAutoMount() = Checks to see if the given player is currently on an auto mount ==== Syntax ==== IsOnAutoMount(param1)...")
 
 
Line 10: Line 10:
  
 
==== Parameters ====
 
==== Parameters ====
; Required - ''param1'' (Spawn
+
; Required - ''param1'' (Spawn)
 
: ''param1'' is the player we want to check
 
: ''param1'' is the player we want to check
  

Latest revision as of 18:32, 28 January 2016

LUA - IsOnAutoMount

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


LUA Functions: IsOnAutoMount()

Checks to see if the given player is currently on an auto mount


Syntax

IsOnAutoMount(param1)


Parameters

Required - param1 (Spawn)
param1 is the player we want to check


Returns

True if the player is on an auto mount


Usage

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

This function will check to make sure the player is on an auto mount first before trying to end it


Notes

Can only be used on a player