🎭NPC
Last updated
Last updated
CNPC
.CNPC
extends CEntity
Name | Type | Description |
---|---|---|
Returns owner of the CNPC
. Works for spirit bear.
Name | Type | Description |
---|---|---|
Returns CItem
by name.
Name | Type | Description |
---|---|---|
Returns true
if the CNPC
has item with specified name.
Returns true
if the CNPC
has modifier with specified name.
Returns CModifier
by name.
`poperty_filter` doesn`t filter all modifiers every call, it uses already prefiltered list.
Returns an array of all NPC's CModifier
s.
Returns true
if the CNPC
has free inventory slot.
Returns true
if the CNPC
has state. The best way to check if the CNPC
is stunned, silenced, hexed, has BKB immune etc.
CNPC
): boolean
Returns true
if waiting to spawn. For example, creeps are waiting to spawn under the ground near the barracks.
CNPC
): boolean
Returns true
if the CNPC
is illusion.
CNPC
): boolean
Returns true
if the CNPC
is visible to local player.
CNPC
): boolean
Returns true
if the CNPC
is visible enemies.
CNPC
): boolean
Returns true
if the CNPC
is a courier.
CNPC
): boolean
Returns true
if the CNPC
is a ranged unit.
CNPC
): boolean
Returns true
if the CNPC
is a creep.
CNPC
): boolean
Returns true
if the CNPC
is a lane creep.
CNPC
): boolean
Returns true
if the CNPC
is a structure.
CNPC
): boolean
Returns true
if the CNPC
is a tower.
CNPC
): Enum.UnitTypeFlags
Returns unit type flags.
CNPC
): boolean
Returns true
if it is unit a considered a hero for targeting purposes.
CNPC
): boolean
Returns true
if the CNPC
is a barracks.
CNPC
): boolean
Returns true
if the CNPC
is an ancient creeps.
CNPC
): boolean
Returns true
if the CNPC
is a Roshan.
CNPC
): boolean
Returns true
if the CNPC
is a neutral. Neutral creeps, ancient creeps.
CNPC
): boolean
Returns true
if the CNPC
is a hero.
CNPC
): boolean
Returns true
if the CNPC
is a ward.
CNPC
): boolean
Returns true
if the CNPC
is a meepo clone.
Returns true
if the CNPC
in range of other CNPC
.
Returns true
if the CNPC
in range of position.
CNPC
): boolean
Returns true
if the CNPC
is protected by Linkens Sphere.
CNPC
): boolean
Returns true
if the CNPC
is protected by Mirror Shield.
CNPC
): boolean
Do not work for items.
Returns true
if the CNPC
is channeling ability. Black Hole, Life Drain, etc.
Returns the currently channelling CAbility
.
CNPC
): boolean
Returns true
if the CNPC
is running.
CNPC
): boolean
Returns true
if the CNPC
is attacking.
CNPC
): boolean
Returns true
if the CNPC
is silenced.
CNPC
): boolean
Returns true
if the CNPC
is stunned.
CNPC
): boolean
Returns true
if the CNPC
has aegis.
CNPC
): boolean
Returns true
if the CNPC
has killable. Example: false if affected by Eul.
CNPC
): Enum.GameActivity
Returns the CNPC
activity, such as running, attacking, casting, etc.
CNPC
): {sequence:integer, cycle:number, name:string, mdl_name:string}
Returns information about the current animation of the CNPC
.
CNPC
): integer
Returns the base attack range of the CNPC
.
CNPC
): integer
Returns the bonus attack range of the CNPC
.