No categories assigned

LUA:SetInt

LUA Functions: SetInt()

Modifies the given spawns intelligence by the given amount


Syntax

SetInt(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn who's intelligence we want to modify
param2 is the value we want to modify it by


Usage

function hailed(NPC, Spawn)
    SetInt(Spawn, -10)
end

When the NPC is hailed the player will loose 10 intelligence