Assigning TIDs to Players

From ZDoom Wiki
Jump to navigation Jump to search

Usually you cannot manipulate the player using ACS because they do not have a TID, as a TID of zero is invalid. You can assign a TID to the player using the following script.

Script 1 ENTER
{
	Thing_ChangeTID(0, 1000 + PlayerNumber()); // This assigns the TID
}

This changes the TID of the activator (which is automatically the player because of the nature of ENTER scripts) to 1000 plus the player number, which will give each player a separate TID (i.e player 1 is 1000, player 2 is 1001 etc).

See Also

Tutorials