I love the smell of UnrealEd crashing in the morning. – tarquin
Difference between revisions of "UE2:MaterialSwitch (UT2004)"
From Unreal Wiki, The Unreal Engine Documentation Site
m (added descriptions) |
m (→Trigger: added optional U2XMP parameter for inclusion) |
||
Line 32: | Line 32: | ||
====Trigger==== | ====Trigger==== | ||
− | {{code|function '''Trigger''' ({{cl|Actor}} '''Other''', {{cl|Actor}} '''EventInstigator''')}} | + | {{code|function '''Trigger''' ({{cl|Actor}} '''Other''', {{cl|Actor}} '''EventInstigator'''{{#ifeq:{{gamename}}|U2XMP|, optional [[name]] '''EventName'''}})}} |
'''Overrides:''' {{tl|Trigger|Modifier}} | '''Overrides:''' {{tl|Trigger|Modifier}} |
Latest revision as of 00:30, 11 August 2009
- Package:
- Engine
- This class in other games:
- U2XMP, UE2Runtime, UT2003, U2
A trigger-advanced list of materials.
Properties[edit]
Property group 'MaterialSwitch'[edit]
Current[edit]
Type: int
Modifiers: transient
The current material from the Materials list.
Materials[edit]
Modifiers: editinlineuse
The list of available materials.
Instance functions[edit]
Reset[edit]
function Reset ()
Overrides: Modifier.Reset
Resets to the first material in the Materials list. Also resets that first material and the FallbackMaterial. Note that other materials in the list will not be reset.
Trigger[edit]
Overrides: Modifier.Trigger
Switches to the next material in the Materials list. If the end of the list is reached, the first material is switched to.
The new material and the FallbackMaterial are triggered as well.