Difference between revisions of "LUA:SetAgi"

(Created page with "= LUA Functions: SetAgi() = Adds the given amount of agility to the given spawn ==== Syntax ==== SetAgi(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ...")
 
(No difference)

Latest revision as of 22:39, 11 September 2013

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