TF2_OnPlayerTeleport

Last Updated2012-05-28
Created At2012-05-28

Called when a player attempts to use a teleporter to decide if the player should be allowed to teleport. Return Plugin_Continue to let the original calculation or return a higher action to override the decision with the value of 'result'

forward Action TF2_OnPlayerTeleport(int client, int teleporter, bool& result)

Parameters

int client
Client index.
int teleporter
Teleporter entity index.
bool& result
Buffer param for the result of the decision. This is prepopulated with the game's original decision to let a player teleport.

Return Value

Action Plugin_Continue for original calculation, higher value to use 'result'.