You are viewing an old version of this page. Return to the latest version.
Version of 16:14, 28 August 2013 by I need to Update My Profile
Difference between revisions of "LUA:Runback"
(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: Runback() = |
| − | + | Forces the given spawn to run back to where it was when combat started | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | Runback(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn | + | ; Required - ''param1'' (Spawn) |
| − | : ''param1'' is the spawn | + | : ''param1'' is the spawn you want to run back |
| − | |||
| − | |||
==== Usage ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
| − | function | + | function hailed_busy(NPC, Spawn) |
| − | + | Runback(NPC) | |
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | This | + | This will cause the spawn to run back to where it was when combat started when it is hailed in combat (hailed_busy) |
| − | |||
| − | |||
| − | |||
Latest revision as of 19:03, 28 August 2013
LUA Functions: Runback()
Forces the given spawn to run back to where it was when combat started
Syntax
Runback(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn you want to run back
Usage
function hailed_busy(NPC, Spawn)
Runback(NPC)
end
This will cause the spawn to run back to where it was when combat started when it is hailed in combat (hailed_busy)