Garry's Mod Wiki

Revision Difference

ENTITY:SetNPCClass#560229

<function name="SetNPCClass" parent="ENTITY" type="classfunc"> <file line="14">gamemodes/base/entities/entities/base_ai/init.lua</file>⤶ <description>Sets the NPC classification. Internally sets the `m_iClass` variable which is polled by the engine. <note>This is a helper function only available if your SENT is based on `base_ai`</note></description> <realm>Server</realm> <args> <arg name="classification" type="number">The <page text="CLASS Enum">Enums/CLASS</page></arg> </args> </function>