Garry's Mod Wiki

NPC:IsUnreachable

boolean NPC:IsUnreachable( Entity testEntity )

Description

Returns true if the entity was remembered as unreachable. The memory is updated automatically from following engine tasks if they failed:

  • TASK_GET_CHASE_PATH_TO_ENEMY
  • TASK_GET_PATH_TO_ENEMY_LKP
  • TASK_GET_PATH_TO_INTERACTION_PARTNER
  • TASK_ANTLIONGUARD_GET_CHASE_PATH_ENEMY_TOLERANCE
  • SCHED_FAIL_ESTABLISH_LINE_OF_FIRE - Combine NPCs, also when failing to change their enemy

Arguments

1 Entity testEntity
The entity to test.

Returns

1 boolean
If the entity is reachable or not.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 15
Render Body 0
Render Sidebar 12