WEAPON:KeyValue

From Garry's Mod
Jump to: navigation, search
 WEAPON:KeyValue( )

Contents

Description

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

See GM:EntityKeyValue for a hook that works for all entities.
See ENTITY:KeyValue for an SENT hook that works for scripted entities.

Arguments

string key

The key that was affected.

Arguments

string value

The new value.

Returns

boolean

Return true to suppress this KeyValue or return false or nothing to apply this key value.
Personal tools
Navigation