Thank me later, Credits to original creator.
Also, now that I'm posting this. Would anyone like to tell me how to make this like the comment from above. "Lua Code:" Etc...
local safeStrike = true
registerEventListener(TIMER_TICK, "onTick")
function onTick()
if safeStrike then
local pos = Self.LookPos()
for i = CREATURES_LOW, CREATURES_HIGH do
local c = Creature.GetFromIndex(i)
if c:isAlive() and c:isPlayer() and (c:Position().x == pos.x and c:Position().y == pos.y and c:Position().z == pos.z) then
Self.Turn(math.abs(Self.LookDirection() + 1))
end
end
end
end