Difference between revisions of "LUA:GetMount"

(Created page with "= LUA Functions: GetMount() = Gets the mount of the given spawn ==== Syntax ==== GetMount(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is the spa...")
 
 
Line 4: Line 4:
  
 
==== Syntax ====
 
==== Syntax ====
GetMount(param1)
+
var = GetMount(param1)
  
  

Latest revision as of 17:05, 11 September 2013

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