Hey,
I have this code to teleport player's back to their most recent checkpoint.
The function is called here
and also here
When the player right clicks using the compass, they teleport and everything is fine.
However, when the player falls into the void, they teleport but are unable to move at all. They cannot move, jump, or even look around.
Any help with this would be appreciated.
Cheers.
I have this code to teleport player's back to their most recent checkpoint.
Code:
function teleportCheckpoint(p: player):
teleport {_p} to {%{_p}%::checkpoint}
The function is called here
Code:
on damage:
if damage cause is void:
cancel event
teleportCheckpoint(victim)
Code:
on right click:
if player's held item is compass:
if name of player's held item is "&f&lCheckpoint":
teleportCheckpoint(player)
When the player right clicks using the compass, they teleport and everything is fine.
However, when the player falls into the void, they teleport but are unable to move at all. They cannot move, jump, or even look around.
Any help with this would be appreciated.
Cheers.