TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ UnityTeleport()

void Terraria.Player.UnityTeleport ( Vector2 telePos)
inline

Definition at line 41508 of file Player.cs.

41509 {
41510 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
41511 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
41512 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
41513 int num = 3;
41514 if (Main.netMode == 0)
41515 {
41517 }
41518 else
41519 {
41520 NetMessage.SendData(65, -1, -1, null, 2, whoAmI, telePos.X, telePos.Y, num);
41521 }
41522 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
Definition Player.cs:36320

References Terraria.Main.netMode, Terraria.NetMessage.SendData(), Terraria.Player.Teleport(), and Terraria.Entity.whoAmI.

+ Here is the call graph for this function: