Difference between revisions of "LUA:FaceTarget"

(Created page with "= LUA Functions: FaceTarget() = Forces a spawn to turn towards another spawn. ==== Syntax ==== FaceTarget(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn)...")
 
(No difference)

Latest revision as of 17:35, 16 October 2012

LUA Functions: FaceTarget()

Forces a spawn to turn towards another spawn.


Syntax

FaceTarget(param1, param2)


Parameters

Required - param1 (Spawn), param2 (Spawn)
param1 is the spawn that will turn
param2 is the target


Usage

function hailed(NPC, Spawn)
    FaceTarget(NPC, Spawn)
end

This makes the NPC face the spawn that hailed it.