No categories assigned

LUA:SetIntBase

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