Is this possible? Right now they're responding WAY to fast when facing the player. Any C++ experts got any ideas?
This is the piece of code I need to edit
This is the piece of code I need to edit
Code:
int NpcScriptInterface::luaFaceCreature(lua_State *L)
{
// facePlayer(cid)
uint32_t cid = popNumber(L);
ScriptEnviroment* env = getScriptEnv();
Npc* npc = env->getNpc();
if (npc) {
Creature* creature = env->getCreatureByUID(cid);
if (creature) {
g_game.internalCreatureTurn(npc, npc->getDir(creature));
}
}
return 1;
}