No categories assigned

LUA:FaceTarget

Revision as of 17:35, 16 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: FaceTarget() = Forces a spawn to turn towards another spawn. ==== Syntax ==== FaceTarget(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.