No categories assigned

LUA:SetIntBase

Revision as of 23:16, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetIntBase() = Sets the base intelligence for the given spawn to the given value ==== Syntax ==== SetIntBase(param1, param2) ==== Parameters ==== ; Required ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: SetIntBase()

Sets the base intelligence for the given spawn to the given value


Syntax

SetIntBase(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int16)
param1 is the spawn who's base intelligence we want to set
param2 is the value we want to set it to


Usage

function hailed(NPC, Spawn)
    SetIntBase(Spawn, 40)
end

When the NPC is hailed the player will have its base intelligence set to 40