I just want to check that this is an OK way to do it.
I have an actor that uses a translation, set in the default block of the actor.
When the actor dies, I want the translation to be removed so that the actor just uses the native colours of its sprites.
I am using A_SetTranslation(""); on the first frame in the death state sequence. It works. I just want to check that it's OK to do it like that because I couldn't see anything explicit about it in the Wiki.
Remove a translation from an actor ZScript
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
-
- Posts: 26879
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
-
-
- Posts: 1853
- Joined: Sun Jul 21, 2019 8:54 am
Re: Remove a translation from an actor ZScript
It is ok, I used this method a lot and it never caused any issues.
-
-
- Posts: 26879
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Remove a translation from an actor ZScript
Thanks for confirming. When I couldn't find a clear statement saying this was how to do it, I was worried that I might be doing something unsupported that could break at some future point.
-
- Posts: 85
- Joined: Wed Dec 15, 2021 8:38 pm
- Graphics Processor: nVidia (Modern GZDoom)
Re: Remove a translation from an actor ZScript
Oh, for real? I made a custom translation that just says "0:255=0:255". I didn't realize you could just make it blank and it would reset.