GM:EntityKeyValue

From Garry's Mod
Jump to: navigation, search
 GM:EntityKeyValue( )

Contents

Description

Called when a key-value pair is set on an entity, either by the engine (for example when map spawns) or Entity:SetKeyValue.

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

Arguments

Entity ent

Entity that the keyvalue is being set on

Arguments

string key

Key of the key/value pair

Arguments

string value

Value of the key/value pair

Returns

string

If set, the value of the key-value pair will be overridden by this string.
Personal tools
Navigation