Garry's Mod Wiki

Revision Difference

ENTITY:KeyValue#514684

<function name="KeyValue" parent="ENTITY" type="hook">⤶ <ishook>yes</ishook>⤶ <description>⤶ Called when the engine sets a value for this scripted entity.⤶ ⤶ See <page>GM:EntityKeyValue</page> for a hook that works for all entities.⤶ ⤶ ⤶ See <page>WEAPON:KeyValue</page> for a hook that works for scripted weapons.⤶ </description>⤶ <realm>Server</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="key" type="string">The key that was affected.</arg>⤶ <arg name="value" type="string">The new value.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Return true to suppress this KeyValue or return false or nothing to apply this key value.</ret>⤶ </rets>⤶ </function>⤶ ⤶