Difference between revisions of "LUA:SetIntBase"
(Created page with "= LUA Functions: SetIntBase() = Sets the base intelligence for the given spawn to the given value ==== Syntax ==== SetIntBase(param1, param2) ==== Parameters ==== ; Required ...") |
(No difference)
|
Latest revision as of 23:16, 11 September 2013
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