No categories assigned

LUA:SetSta

Revision as of 13:23, 12 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetSta() = Modifies the given spawns stamina by the given amount ==== Syntax ==== SetSta(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetSta()

Modifies the given spawns stamina by the given amount


Syntax

SetSta(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn we want to modify
param2 is the amount we want to modify stamina by


Usage

function hailed(NPC, Spawn)
    SetSta(Spawn, 20)
end

When hailed the players stamina will be increased by 20