TF2_AddCondition Function

Adds a condition to a player

void TF2_AddCondition(int client, TFCond condition, float duration, int inflictor)

Parameters

int client

Player's index.

TFCond condition

Integer identifier of condition to apply.

float duration

Duration of condition (does not apply to all conditions). Pass TFCondDuration_Infinite to apply until manually removed.

int inflictor

Condition inflictor's index (0 for no inflictor).

Errors

Invalid client index, client not in game, or no mod support.