You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:ClearHate"
| Line 11: | Line 11: | ||
: ''param1'' is the spawn who's hate list we want to modify | : ''param1'' is the spawn who's hate list we want to modify | ||
; Optional - ''param2'' (Spawn) | ; Optional - ''param2'' (Spawn) | ||
| − | : '' | + | : ''param2'' if given only this spawn will be removed from the hate list |
==== Usage ==== | ==== Usage ==== | ||
Latest revision as of 20:58, 28 August 2013
LUA Functions: ClearHate()
Clears the hate from the given spawn
Syntax
ClearHate(param1, [param2])
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's hate list we want to modify
- Optional - param2 (Spawn)
- param2 if given only this spawn will be removed from the hate list
Usage
function hailed_busy(NPC, Spawn)
ClearHate(NPC, Spawn)
end
This will clear the hate this spawn has towards whoever hails it while in combat
Notes
If the second spawn is not given the entire hate list will be cleared