ZDoom Line Specials

176:Thing_ChangeTID

Name

Thing_ChangeTID — changes a thing's TID.

Synopsis

Thing_ChangeTID (oldtid, newtid);
Thing_ChangeTID (
  oldtid,    // The old TID
  newtid     // The new TID
);

Parameters

oldtid
This is the Thing ID you want to change. If it is 0, then the thing that activated this special will have its TID changed.
newtid
This is the new Thing ID to assign to everything with oldtid. Anything that already has TID newtid is left unchanged.

ACS

This special's function is the same whether you activate it on a line or use it in a script.

Remarks

This special can be useful if you want to do different initialization for various things (such as giving them different palette translations) but want to refer to them all as a single group once the initialization is finished.

Examples

Assign the activating thing TID 3:

Thing_ChangeTID (0, 3);

Assign everything with TIDs 6 and 7 to TID 10:

Thing_ChangeTID (6, 10);
Thing_ChangeTID (7, 10);

First Available In

ZDoom 2.0.39

See Also