Thing_SetTranslation

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);
}

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)

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

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.