Garry's Mod Wiki

Garry's Mod Wiki

  boolean ENTITY:KeyValue( string key, string value )

Description

Called when the engine sets a value for this scripted entity.

This hook is called before ENTITY:Initialize when the key-values are set by the map.
Otherwise this hook will be called whenever Entity:SetKeyValue is called on the entity.

See GM:EntityKeyValue for a hook that works for all entities.

See WEAPON:KeyValue for a hook that works for scripted weapons.

Arguments

1 string key
The key that was affected.
2 string value
The new value.

Returns

1 boolean
Return true to suppress this KeyValue or return false or nothing to apply this key value.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...