Thing_SetTranslation

From ZDoom Wiki
Jump to navigation Jump to search

180:Thing_SetTranslation (tid, translation)


  • tid: Thing ID of the actor to apply the translation to. If this is 0, the activator is used.
  • translation: Translation number (set up with CreateTranslation)

Assigns a translation to a specified thing. Use -1 for translation to change the translation to that currently being used by the activator of the script. So, if you have a scripted marine with a tid of 17, then to make him have the same color as the player you would do:

script 1 enter
{
    Thing_SetTranslation(17, -1);
}

Additionally, specifying TRANSLATION_ICE as the translation to use, allows the application of the ice translation.