Difference between revisions of "LUA:SpawnMove"
(Created page with "= LUA Functions: SpawnMove() = This lets a player move a spawn like a piece of furniture on EQ2 live. ==== Syntax ==== SpawnMove(param1, param2, [param3], [param4]) ==== Para...") |
(→LUA Functions: SpawnMove()) |
||
| Line 1: | Line 1: | ||
= LUA Functions: SpawnMove() = | = LUA Functions: SpawnMove() = | ||
| − | This lets a player move a spawn like | + | This lets a player move a spawn like the /spawn move command. |
Latest revision as of 03:56, 12 November 2013
LUA Functions: SpawnMove()
This lets a player move a spawn like the /spawn move command.
Syntax
SpawnMove(param1, param2, [param3], [param4])
Parameters
- Required - param1 (Spawn*), param2 (Player*)
- param1 is the spawn to be moved
- param2 is the player who is moving the spawn
- Optional - param3 (float), param4 ("string")
- param3 is the max_distance away from the player the moved spawn can be set
- param4 can be either "wall" or "ceiling" for alternate placement types
Usage
function hailed(NPC, Spawn)
SpawnMove(NPC, Spawn, 10)
end
When this spawn is hailed, the spawn will be moved by the player that hailed it.