Garry's Mod Wiki

ENTITY:AddOutputFromKeyValue

  boolean ENTITY:AddOutputFromKeyValue( string key, string value )

Description

A helper function for creating Scripted Entities.

Call it from ENTITY:KeyValue and it'll return true if it successfully added an output from the passed KV pair.

Arguments

1 string key
The key-value key.
2 string value
The key-value value.

Returns

1 boolean
Whether any outputs were added or not.