No categories assigned

LUA:SetStr

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

LUA Functions: SetStr()

Modifies the strength of the given spawn


Syntax

SetStr(param1, param2)


Parameters

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


Usage

function hailed(NPC, Spawn)
    SetStr(Spawn, -15)
end

When hailed the players strength will be reduced by 15