No categories assigned

LUA:SetSta

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