• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] why doesnt this work?

Status
Not open for further replies.
Level 3
Joined
Apr 2, 2006
Messages
28
its a simple gate opening/ closing trigger but it doesnt work.. it ressurects the lever, closes gate but doesnt change variable (therefore disables opening it)

destructible - Lever dies

Gatestatus[1] equal to 1

Destructible - Close Gate
Set gatestatus[1] = 0
Wait 5.00 seconds
Destructible - Ressurect Lever
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Umm.. how about putting it like this ^^
  • Events
    • Lever dies
  • Conditions
  • Actions
    • Set Gatestatus[1] = 1.00
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • 'IF'-Conditions
        • Gatestatus[1] Equal to 1.00
      • 'THEN'-Aktionen
        • Destructible - Close Gate
      • 'ELSE'-Aktionen
    • Set RH = 0.00
    • Wait 5.00 seconds
    • Destructible - Resurrect Lever
 
Level 3
Joined
Apr 2, 2006
Messages
28
Umm.. how about putting it like this ^^
  • Events
    • Lever dies
  • Conditions
  • Actions
    • Set Gatestatus[1] = 1.00
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • 'IF'-Conditions
        • Gatestatus[1] Equal to 1.00
      • 'THEN'-Aktionen
        • Destructible - Close Gate
      • 'ELSE'-Aktionen
    • Set RH = 0.00
    • Wait 5.00 seconds
    • Destructible - Resurrect Lever

hm I dont understand this much.. first you set the gatestatus to 1 and then you use the IF sentence about if the gatestatus is 1. isnt that unneseccery? youre sure the set gatestatus should be there?
 
Status
Not open for further replies.
Top