Difference between revisions of "LUA:SetInt"
(Created page with "= LUA Functions: SetInt() = Modifies the given spawns intelligence by the given amount ==== Syntax ==== SetInt(param1, param2) ==== Parameters ==== ; Required - ''param1'' (S...") |
(No difference)
|
Latest revision as of 23:02, 11 September 2013
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