No categories assigned
LUA:FaceTarget
- Last edited 13 years ago by I need to Update My Profile
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.