No categories assigned

LUA:GetAgiBase

Revision as of 17:43, 16 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetAgiBase() = Returns the base agility of the given spawn. ==== Syntax ==== var = GetAgiBase(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.