Created
May 31, 2020 17:51
-
-
Save brennancheung/8d26a5725e8db6f5ddede9f6728af9ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void TP(BasePlayer player, MapNote note) | |
{ | |
player.flyhackPauseTime = 10f; | |
var health = player.health; | |
var health2 = 100 - health; | |
player._health = 100000; | |
var pos = note.worldPosition + new Vector3(0,120,0);; | |
player.Teleport(pos); | |
Message(player, "Teleported", pos); | |
timer.Once(6f, () => { if (player == null) return; Message(player, "Cooldown", (100 - health2)); player.SetMaxHealth(100); player.Hurt(health2); }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment