Garry's Mod Wiki

ENTITY:AddOutputFromAcceptInput

  boolean ENTITY:AddOutputFromAcceptInput( string name, string data )

Description

A helper function for creating Scripted Entities.

Similar to ENTITY:AddOutputFromKeyValue, call it from ENTITY:AcceptInput and it'll return true if it successfully added an output from the passed input data.

Arguments

1 string name
The input name from ENTITY:AcceptInput.
2 string data
The input data from ENTITY:AcceptInput.

Returns

1 boolean
Whether any outputs were added or not.