TF2_DisguisePlayer

Last Updated2016-05-21
Created At2008-04-04

Disguises a client to the given model and team. Only has an effect on spies. Note: This only starts the disguise process and a delay occurs before the spy is fully disguised

native void TF2_DisguisePlayer(int client, TFTeam team, TFClassType classType, int target = 0)

Parameters

int client
Player's index.
TFTeam team
Team to disguise the player as (only TFTeam_Red and TFTeam_Blue have an effect)
TFClassType classType
TFClassType class to disguise the player as
int target
Specific target player to disguise as (0 for any)

Return Value

void

Error

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