No categories assigned

LUA:GetIntBase

LUA Functions: GetIntBase()

Gets the base intelligence for the given spawn


Syntax

GetIntBase(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's base intelligence we want


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your base intelligence is " .. GetIntBase(Spawn) .. ".")
end

When the owner of this spawn script is hailed it will respond with the players base intelligence.