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

◆ CanBeChasedBy()

bool Terraria.NPC.CanBeChasedBy ( object attacker = null,
bool ignoreDontTakeDamage = false )
inline

Definition at line 106804 of file NPC.cs.

106805 {
106807 {
106808 return !immortal;
106809 }
106810 return false;
106811 }
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
Definition Entity.cs:21
bool immortal
Definition NPC.cs:700
bool chaseable
Definition NPC.cs:702
int lifeMax
The maximum life of this NPC.
Definition NPC.cs:1077
bool dontTakeDamage
Definition NPC.cs:1160
bool friendly
Indicates that an NPC is friendly to players. If true, a player won't damage the NPC and the NPC won'...
Definition NPC.cs:1197

Referenced by Terraria.Player.BloodButcherer_TryButchering(), Terraria.Utilities.NPCUtils.SearchFilters.NonBeeNPCs(), and Terraria.Player.TentacleSpike_TrySpiking().

+ Here is the caller graph for this function: