Difference between revisions of "LUA:ClearEncounter"
(Created page with "= LUA Functions: AddHate() = Adds hate to ''param2'' from ''param1'' ==== Syntax ==== AddHate(param1, param2, param3) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: ClearEncounter() = |
| − | + | Clears the encounter list for the given spawn | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | ClearEncounter(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn | + | ; Required - ''param1'' (Spawn) |
| − | : ''param1'' is the spawn | + | : ''param1'' is the spawn who's encounter we want to clear |
| − | |||
| − | |||
==== Usage ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
| − | function | + | function hailed_busy(NPC, Spawn) |
| − | + | ClearEncounter(NPC) | |
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | This | + | This will clear the encounter list when hailed in combat |
| − | |||
| − | |||
| − | |||
Latest revision as of 21:04, 28 August 2013
LUA Functions: ClearEncounter()
Clears the encounter list for the given spawn
Syntax
ClearEncounter(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's encounter we want to clear
Usage
function hailed_busy(NPC, Spawn)
ClearEncounter(NPC)
end
This will clear the encounter list when hailed in combat