Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Ghosts checks

Min edited this page Jul 8, 2018 · 1 revision

Ghost checks

Because TTT Spectator Deathmatch introduces a deathmatch after the players death it may conflict with some addons.

This can be e.g. mines going off when ghosts walk by or flying hats.

Addons can check if a player is in deathmatch (being a ghost) by using ply.IsGhost and ply:IsGhost() and do actions accordingly.

This doesn't throw an error when TTT Spectator Deathmatch isn't installed.

Clone this wiki locally