No categories assigned

LUA:SetStaBase

Revision as of 13:26, 12 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetStaBase() = Sets the base stamina of the given spawn ==== Syntax ==== SetStaBase(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetStaBase()

Sets the base stamina of the given spawn


Syntax

SetStaBase(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int16)
param1 is the spawn we want to modify
param2 is what we want to set the base stamina to


Usage

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

When hailed the players base stamina is set to 20