Thing_SetTranslation

From ZDoom Wiki

Jump to: navigation, 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 (made 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);
  }
Personal tools