Assigning TIDs to Players

From ZDoom Wiki

Jump to: navigation, search

Usually you cannot manipulate the player using ACS because he or she has no TID (it is not 0). To 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 automaticly the player in this case because of ENTER) to 1000 plus the player number, which will give each player a seperate TID (i.e player 1 is 1000, player 2 is 1001 etc).

If you are planning to use multiple players you should make a DEATH script identical to the one above.

See Also

Tutorials

Personal tools