No categories assigned

LUA:SetAgi

Revision as of 22:39, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetAgi() = Adds the given amount of agility to the given spawn ==== Syntax ==== SetAgi(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetAgi()

Adds the given amount of agility to the given spawn


Syntax

SetAgi(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn who's agility we want to modify
param2 is the amount to change agility by


Usage

function hailed(NPC, Spawn)
    SetAgi(Spawn, -10)
end

When the NPC is hailed the player will loose 10 agility