No categories assigned

LUA:StartAutoMount

Revision as of 18:39, 28 January 2016 by Jabantiz (talk | contribs) (Created page with "{{PageHeaderChild|LUA|StartAutoMount}} = LUA Functions: StartAutoMount() = Starts the given auto mount for the given player ==== Syntax ==== StartAutoMount(param1, param2) =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA - StartAutoMount

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


LUA Functions: StartAutoMount()

Starts the given auto mount for the given player


Syntax

StartAutoMount(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the player we want to put on an auto mount
param2 is the path id to travel


Usage

function hailed(NPC, Player)
     StartAutoMount(Player, 1)
end

When hailed this NPC would start the player on an auto mount along the path with ID 1


Notes

Can only be used on a player

Path ID must be greater then 0 and must be in the same zone