85485 {
85486
85487
85488
85489
85490
85491
85492
85493
85494
85495
85496
85497
85498
85499
85500
85501
85502
85503 if (Main.netMode == 1)
85504 {
85505 return false;
85506 }
85508 {
85509 return false;
85510 }
85512 Point point =
base.Center.ToTileCoordinates();
85514 {
85515 Vector2
newPos =
default(Vector2);
85517 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
85519 return true;
85520 }
85521 Vector2
vector = base.Center -
new Vector2(20
f);
85522 Utils.PoofOfSmoke(
vector);
85524 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
85525 NetMessage.SendData(106, -1, -1,
null, (
int)
vector.X,
vector.Y);
85526 return false;
85527 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
int width
The width of this Entity's hitbox, in pixels.
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
int height
The height of this Entity's hitbox, in pixels.
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
bool AI_AttemptToFindTeleportSpot(ref Vector2 chosenTile, int targetTileX, int targetTileY, int rangeFromTargetTile=20, int telefragPreventionDistanceInTiles=5, int solidTileCheckFluff=1, bool solidTileCheckCentered=false, bool teleportInAir=false)