BFME 2 - ROTWK Code Refence  1.0
InvisibilityUpdate Class Reference

Public Attributes

InvisibilityNugget InvisibilityNugget
 
UnsignedInteger UpdatePeriod
 
Upgrades RequiredUpgrades
 
Upgrades ForbiddenUpgrades
 
Boolean Broadcast
 
ObjectFilter BroadcastObjectFilter
 
FloatingPoint BroadcastRange
 
Boolean StartsActive
 
String UnitSpecificSoundNameToUseAsVoiceMoveToStealthyArea
 
String UnitSpecificSoundNameToUseAsVoiceEnterStateMoveToStealthyArea
 

Detailed Description

Behavior = InvisibilityUpdate ModuleTag_TheInvisibilityUpdate

; L01F492C8:   
InvisibilityNugget; L012B5540->L01F6D628:
ForbiddenConditions = FIRING_ANY TAKING_DAMAGE; SUB_L006D3960 //Can't have these conditions
ForbiddenWeaponConditions = CLOSE_RANGE CONTESTING_BUILDING; SUB_L00BC58F0
DetectionRange = 1800; SUB_L006D46C0:Float Point Value //Range to detect
InvisibilityType = STEALTH; SUB_L006D3B30 //CAMOUFLAGE or STEALTH
IgnoreTreeCheckUpgrades = Upgrade_ElvenGift; L00BE9600: List of Upgrades //Ignore tree check when this upgrade is present?
Options = UNTOGGLE_HIDDEN_WHEN_LEAVING_STEALTH; SUB_L006D3960
BecomeStealthedFX = FX_ElvenCloakOn; SUB_L00E6BD90:FXList //FX List to play when unit becomes stealthed
ExitStealthFX = FX_ElvenCloakOff; SUB_L00E6BD90:FXList //FX List to play when unit leaves stealth
HintDetectableConditions = IS_FIRING_WEAPON; SUB_L00C118B0: BitStatus //May not have this Status
End

UpdatePeriod = 1000; SUB_L00E6CB10:Unsigned Integer Value
RequiredUpgrades = Upgrade_ElvenGift; L00BE9600: List of Upgrades //Must have these upgrades
ForbiddenUpgrades = Upgrade_RohanFireArrows; L00BE9600: List of Upgrades //Must have these upgrades
Broadcast = Yes; SUB_L006D3400:Boolean
BroadcastObjectFilter = ANY + HORDE + HERO; SUB_L00EDCA00:Object Filter
BroadcastRange = 200; SUB_L006D46C0:Float
StartsActive = Yes; SUB_L006D3400:Boolean
UnitSpecificSoundNameToUseAsVoiceMoveToStealthyArea = VoiceMoveToTrees; SUB_L006D4C30
UnitSpecificSoundNameToUseAsVoiceEnterStateMoveToStealthyArea = VoiceEnterStateMoveToTrees; SUB_L006D4C30

End