What would be the best way to create a faster way for summons to follow a player?
Is it possible to add something in movements somehow?
Right now I have it in creaturescriptsnThink and it works but since the onThink is slow it takes years before responding. Reducing the onThink in sources creates bugs with monsters not moving at all.
Script im using:
Is it possible to add something in movements somehow?
Right now I have it in creaturescriptsnThink and it works but since the onThink is slow it takes years before responding. Reducing the onThink in sources creates bugs with monsters not moving at all.
Script im using:
Lua:
function onStepIn(creature)
local master = creature:getMaster()
if not master then return true end
local pos = creature:getPosition()
local master_pos = master:getPosition()
local master_teleport = {x=(master_pos.x+(math.random(-1,1))),y=(master_pos.y),z=(master_pos.z)}
if getDistanceBetween(pos, master_pos) > 1 or master_pos.z ~= pos.z then
if creature:teleportTo(master_teleport, true) then
end
end
return true
end
Last edited: