No categories assigned

LUA:SetAgiBase

Revision as of 22:42, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetAgiBase() = Sets the base agility for the given spawn to the given value ==== Syntax ==== SetAgiBase(param1, param2) ==== Parameters ==== ; Required - ''p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetAgiBase()

Sets the base agility for the given spawn to the given value


Syntax

SetAgiBase(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int16)
param1 is the spawn who's base agility we want to change
param2 is the value we want to set the base agility to


Usage

function hailed(NPC, Spawn)
    SetAgiBase(Spawn, 40)
end

When the NPC is hailed the players base agility will be set to 40