G.IsEnemyEntityName
From GMod Wiki
| Function | |
| Syntax |
IsEnemyEntityName( victimtype ) Where is this used? |
| Description: | |
| Tests is an NPC hostile to the player. | |
| Returns: | Boolean |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.IsEnemyEntityName]G.IsEnemyEntityName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The following NPCs are hostile:
| npc_antlion | npc_antlion_worker | npc_antlionguard |
| npc_breen | npc_combine_s | npc_cscanner |
| npc_fastzombie | npc_fastzombie_torso | npc_gman |
| npc_headcrab | npc_headcrab_fast | npc_headcrab_poison |
| npc_hunter | npc_manhack | npc_poisonzombie |
| npc_zombie | npc_zombie_torso | npc_zombine |