Garry's Mod Wiki

Revision Difference

NPC:SetIgnoreConditions#562728

<function name="SetIgnoreConditions" parent="NPC" type="classfunc"> <description>Sets conditions to ignore for the this NPC.</description> <description>Sets conditions to ignore, which would normally interrupt an Engine-based schedule. Specified conditions will still be set, will call <page>ENTITY:OnCondition</page> and can be returned by <page>NPC:HasCondition</page>, but they will no longer interrupt the Engine schedule. </description> <realm>Server</realm> <added>2023.11.17</added> <args> <arg name="conditions" type="table">Conditions to ignore, see <page>Enums/COND</page>. The table must be sequential, numerical and values must correspond to condition enums. </arg> <arg name="size" type="number">Number of conditions to include in the ignored conditions table. Set this to the size of ignored conditions table to ignore all specified conditions.</arg> <arg name="size" type="number">Number of conditions to include in the ignored conditions table. Set this to the size of ignored conditions table to ignore all specified conditions. </arg> </args> </function>