I love the smell of UnrealEd crashing in the morning. – tarquin
Difference between revisions of "Legacy:TriggeredTexture"
From Unreal Wiki, The Unreal Engine Documentation Site
m (+Legacy:Dynamic_Texture/+cat) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{classbox|[[Legacy:Actor|Actor]] >> [[Legacy:Triggers (UT)|Triggers (UT)]] >> TriggeredTexture}} | {{classbox|[[Legacy:Actor|Actor]] >> [[Legacy:Triggers (UT)|Triggers (UT)]] >> TriggeredTexture}} | ||
− | ''TriggeredTexture'' controls a [[Legacy:ScriptedTexture (UT)|ScriptedTexture (UT)]] and allows you to switch between different textures displayed on a [[Legacy:Brush|brush]] surface. Used, for instance, for the monitors in in AS-OceanFloor that initially display "Computer online" and switch to "Computer offline" as soon as a terminal has been destroyed. | + | '''TriggeredTexture''' controls a [[Legacy:ScriptedTexture (UT)|ScriptedTexture (UT)]] and allows you to switch between different textures displayed on a [[Legacy:Brush|brush]] surface. Used, for instance, for the monitors in in AS-OceanFloor that initially display "Computer online" and switch to "Computer offline" as soon as a terminal has been destroyed. |
− | + | ==Properties == | |
− | ; DestinationTexture : The [[Legacy:ScriptedTexture (UT)|ScriptedTexture (UT)]] controlled by this TriggeredTexture actor. Note that although this property accepts a regular | + | ; DestinationTexture : The [[Legacy:ScriptedTexture (UT)|ScriptedTexture (UT)]] controlled by this TriggeredTexture actor. Note that although this property accepts a regular texture, the TriggeredTexture won't work if you don't really use a ScriptedTexture. |
− | ; Textures : List of regular [[Legacy:Texture (UT)|Texture (UT)]]s that the TriggeredTexture will cycle through when triggered. Initially, the | + | ; Textures : List of regular [[Legacy:Texture (UT)|Texture (UT)]]s that the TriggeredTexture will cycle through when triggered. Initially, the Texture in slot 0 (zero) is displayed; each time you trigger the TriggeredTexture, the display advances to the next slot. The first slot containing ''None'' marks the end of the list. |
; bTriggerOnceOnly : If set, goes through the list only once (rather than switching back to the first slot after the last has been reached). | ; bTriggerOnceOnly : If set, goes through the list only once (rather than switching back to the first slot after the last has been reached). | ||
− | + | ==How To Use == | |
− | # Apply a [[Legacy:ScriptedTexture (UT)|ScriptedTexture (UT)]] (for instance | + | # Apply a [[Legacy:ScriptedTexture (UT)|ScriptedTexture (UT)]] (for instance Monitor1 to Monitor8 from <tt>Indus7.utx</tt>) wherever you want the dynamic texture to appear. (It will look blank in UnrealEd.) |
# Place a TriggeredTexture actor somewhere in your map. | # Place a TriggeredTexture actor somewhere in your map. | ||
− | # Open the TriggeredTexture's properties and set its DestinationTexture property to the | + | # Open the TriggeredTexture's properties and set its DestinationTexture property to the ScriptedTexture you used in the first step. |
− | # Fill the Textures slots with the | + | # Fill the Textures slots with the textures you want to display on the ScriptedTexture. |
− | # Add a [[Legacy:Trigger|Trigger]] that triggers the TriggeredTexture whenever the displayed | + | # Add a [[Legacy:Trigger|Trigger]] that triggers the TriggeredTexture whenever the displayed texture should change. (To link the Trigger and the TriggeredTexture, set the Trigger's Event property to the same value as the TriggeredTexture's Tag property.) |
+ | |||
+ | Note that the color palette isn't changed. So if your textures doesn't share the same palette, or have identical palettes(?), the other texture's colors will be messed up. | ||
+ | |||
+ | ==Related Pages == | ||
+ | |||
+ | * [[Legacy:Screen|Screen]] – Provides more control over ScriptedTextures than just cycling through regular textures | ||
+ | * [[Legacy:Dynamic_Texture|Dynamic Texture]] | ||
+ | |||
+ | [[Category:Legacy Mapping|{{PAGENAME}}]] |
Latest revision as of 11:57, 31 August 2016
Actor >> Triggers (UT) >> TriggeredTexture
TriggeredTexture controls a ScriptedTexture (UT) and allows you to switch between different textures displayed on a brush surface. Used, for instance, for the monitors in in AS-OceanFloor that initially display "Computer online" and switch to "Computer offline" as soon as a terminal has been destroyed.
Properties[edit]
- DestinationTexture
- The ScriptedTexture (UT) controlled by this TriggeredTexture actor. Note that although this property accepts a regular texture, the TriggeredTexture won't work if you don't really use a ScriptedTexture.
- Textures
- List of regular Texture (UT)s that the TriggeredTexture will cycle through when triggered. Initially, the Texture in slot 0 (zero) is displayed; each time you trigger the TriggeredTexture, the display advances to the next slot. The first slot containing None marks the end of the list.
- bTriggerOnceOnly
- If set, goes through the list only once (rather than switching back to the first slot after the last has been reached).
How To Use[edit]
- Apply a ScriptedTexture (UT) (for instance Monitor1 to Monitor8 from Indus7.utx) wherever you want the dynamic texture to appear. (It will look blank in UnrealEd.)
- Place a TriggeredTexture actor somewhere in your map.
- Open the TriggeredTexture's properties and set its DestinationTexture property to the ScriptedTexture you used in the first step.
- Fill the Textures slots with the textures you want to display on the ScriptedTexture.
- Add a Trigger that triggers the TriggeredTexture whenever the displayed texture should change. (To link the Trigger and the TriggeredTexture, set the Trigger's Event property to the same value as the TriggeredTexture's Tag property.)
Note that the color palette isn't changed. So if your textures doesn't share the same palette, or have identical palettes(?), the other texture's colors will be messed up.
Related Pages[edit]
- Screen – Provides more control over ScriptedTextures than just cycling through regular textures
- Dynamic Texture