Difference between revisions of "LUA:GetAgiBase"

(Created page with "= LUA Functions: GetAgiBase() = Returns the base agility of the given spawn. ==== Syntax ==== var = GetAgiBase(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ...")
 
(No difference)

Latest revision as of 17:43, 16 October 2012

LUA Functions: GetAgiBase()

Returns the base agility of the given spawn.


Syntax

var = GetAgiBase(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn we are getting the base agi for


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your base agility is " .. GetAgiBase(Spawn) .. "!")
end

This makes the NPC respond to the player who hails it with the players base agility.