AcceptEntityInput Function

Invokes a named input method on an entity.

After completion (successful or not), the current global variant is re-initialized.

bool AcceptEntityInput(int dest, const char[] input, int activator, int caller, int outputid)

Parameters

int dest

Destination entity index.

const char[] input

Input action.

int activator

Entity index which initiated the sequence of actions (-1 for a NULL entity).

int caller

Entity index from which this event is sent (-1 for a NULL entity).

int outputid

Unknown.

Return Value

True if successful otherwise false.

Errors

Invalid entity index or no mod support.