NPC.Classify
From GMod Wiki
Revision as of 18:46, 1 June 2011 by Chrisaster (Talk | contribs)
This page needs reviewing. An expert needs to verify that all of the information in this page is correct. See more articles for review here. |
Function | |
Syntax | NPC:Classify( ) |
Description: | |
Returns the NPC class. | |
Returns: | Integer |
In Object: | Npc |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=NPC.Classify]NPC.Classify [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Checks if the NPC is a bullseye. |
---|---|
Used on | |
Code | if npc:Classify() == CLASS_BULLSEYE then print("This npc is a bullseye!") end |
Output | "This npc is a bullseye" if the NPC is a bullseye. |
Additional Notes
SERVER | 0000000000000000 | 00000000000000000 | CLASS_NONE SERVER | 0000000000000001 | 00000000000000001 | CLASS_PLAYER SERVER | 0000000000000002 | 00000000000000010 | CLASS_PLAYER_ALLY SERVER | 0000000000000003 | 00000000000000011 | CLASS_PLAYER_ALLY_VITAL SERVER | 0000000000000004 | 00000000000000100 | CLASS_ANTLION SERVER | 0000000000000005 | 00000000000000101 | CLASS_BARNACLE SERVER | 0000000000000006 | 00000000000000110 | CLASS_BULLSEYE SERVER | 0000000000000007 | 00000000000000111 | CLASS_CITIZEN_PASSIVE SERVER | 0000000000000008 | 00000000000001000 | CLASS_CITIZEN_REBEL SERVER | 0000000000000009 | 00000000000001001 | CLASS_COMBINE SERVER | 0000000000000010 | 00000000000001010 | CLASS_COMBINE_GUNSHIP SERVER | 0000000000000011 | 00000000000001011 | CLASS_CONSCRIPT SERVER | 0000000000000012 | 00000000000001100 | CLASS_HEADCRAB SERVER | 0000000000000013 | 00000000000001101 | CLASS_MANHACK SERVER | 0000000000000014 | 00000000000001110 | CLASS_METROPOLICE SERVER | 0000000000000015 | 00000000000001111 | CLASS_MILITARY SERVER | 0000000000000016 | 00000000000010000 | CLASS_SCANNER SERVER | 0000000000000017 | 00000000000010001 | CLASS_STALKER SERVER | 0000000000000018 | 00000000000010010 | CLASS_VORTIGAUNT SERVER | 0000000000000019 | 00000000000010011 | CLASS_ZOMBIE SERVER | 0000000000000020 | 00000000000010100 | CLASS_PROTOSNIPER SERVER | 0000000000000021 | 00000000000010101 | CLASS_MISSILE SERVER | 0000000000000022 | 00000000000010110 | CLASS_FLARE SERVER | 0000000000000023 | 00000000000010111 | CLASS_EARTH_FAUNA SERVER | 0000000000000024 | 00000000000011000 | CLASS_HACKED_ROLLERMINE SERVER | 0000000000000025 | 00000000000011001 | CLASS_COMBINE_HUNTER