No categories assigned
LUA:IsOnAutoMount
- Last edited 9 years ago by I need to Update My Profile
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