TF2_AddCondition

Last Updated2016-05-21
Created At2010-03-18

Adds a condition to a player

native void TF2_AddCondition(int client, TFCond condition, float duration = TFCondDuration_Infinite, int inflictor = 0)

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).

Return Value

void

Error

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