Garry's Mod Wiki

ENTITY:GetNPCClass

  number ENTITY:GetNPCClass()

Description

Gets the NPC classification. Internally gets the m_iClass variable which is polled by the engine. This will be equivalent to NPC:Classify.

This is a helper function only available if your SENT is based on base_ai

Returns