PlayerIndex and PlayerTID should be treated as global vars