• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved TFS 0.3.6 | NPC face certain direction?

highclick

New Member
Joined
Mar 21, 2011
Messages
80
Reaction score
4
I've browsed the forums in order too find a solution, the solutions were very diffuse and hard for me too understand so I decided too post it here.

I want too be able to make my NPC's face a certain direction (North,South,East,West).

How can i go about?
 
Code:
function onThink() if #npcHandler.focuses == 0 then selfTurn(EAST) end npcHandler:onThink() end
Is this what your looking for?
Might not work for your version. But when the npc is not focused on anything it will turn east/west/north/south..
 
at the top top of the script of an npc it has all the preloaded functions.
You need to place it above with those.
 
.xml script in my experience only holds the looktype/walk/hp/simple shops and greetings..
.lua holds the more advanced functions.
 
Back
Top