No categories assigned

LUA:GetMount

Revision as of 17:05, 11 September 2013 by Jabantiz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetMount()

Gets the mount of the given spawn


Syntax

var = GetMount(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's mount we want to get


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your mount is: " .. GetMount(Spawn))
end

The NPC will respond with the model id of the players mount

Notes

Returns an int32, the model id of the mount