callmephil
Respected Member
Anyone has an idea how to add a cooldown timer to the function
?
I'm pretty sure something like that is already in the core but can't find a way to apply it correctly
PS : i found this in player.cpp
Code:
player->TeleportTo
I'm pretty sure something like that is already in the core but can't find a way to apply it correctly
PS : i found this in player.cpp
Code:
//lets reset far teleport flag if it wasn't reset during chained teleports
SetSemaphoreTeleportFar(false);
//setup delayed teleport flag
SetDelayedTeleportFlag(IsCanDelayTeleport());
//if teleport spell is cast in Unit::Update() func
//then we need to delay it until update process will be finished
if (IsHasDelayedTeleport())
{
SetSemaphoreTeleportNear(true);
//lets save teleport destination for player
m_teleport_dest = WorldLocation(mapid, x, y, z, orientation);
m_teleport_options = options;
return true;
}