Structs:Translation
Jump to navigation
Jump to search
Note: This feature is for ZScript only. |
Translation is a struct that contains methods that deal with color translations.
Usage
Color translations can be modified in ZScript dynamically but cannot be created at runtime.
Each color translation has a numeric ID that can be stored in actors, in their translation
field. This allows to easily copy translation from one actor to another with <a1>.translation = <a2>.translation
(where a1
and a2
are actor pointers).
Translations can also be applied at runtime if they're defined in the TRNSLATE lump.
Methods
Static
- static int MakeID(int group, int num)
- (Need more info)
- native static bool SetPlayerTranslation(int group, int num, int plrnum, PlayerClass pclass)
- (Need more info)
- native static int GetID(Name transname)
- Retrieves the ID of a translation name as defined in TRNSLATE.
Dynamic
- native int AddTranslation()
Examples
![]() |
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |