Garry's Mod Wiki

Revision Difference

Entity:RemoveCallOnRemove#514749

<function name="RemoveCallOnRemove" parent="Entity" type="classfunc">⤶ <description>Removes a function previously added via <page>Entity:CallOnRemove</page>.</description>⤶ <realm>Shared</realm>⤶ <file line="110-L120">lua/includes/extensions/entity.lua</file>⤶ <args>⤶ <arg name="identifier" type="string">Identifier of the function within CallOnRemove</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Removes the call to stop an engine's sounds when the entity is removed</description>⤶ <code>Entity:RemoveCallOnRemove("StopEngineSound")</code>⤶ ⤶ </example>