• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] "Unit - Hide" works in cinematics but "unit -unhide" doesn't?

Status
Not open for further replies.
Level 5
Joined
May 20, 2008
Messages
138
What the title says. I can hide units during a cinematic with the unit - hide action but I can't unhide them during the cinematic using unit - unhide. How do I solve this? I need to be able to hide and show units in the cinematic I am making!
 
Level 29
Joined
Mar 10, 2009
Messages
5,016
Correct me if Im wrong but cinematics works like this...
1 hide units
2 start cinematic
3 unhide unit, but cannot (cinematic still goes on)

- usually the transition between 2 & 3 has a 'wait', so you cant unhide it after while 2 is being processed...
- maybe your variable is pointing to another unit?...
- other than that, post triggers...
 
Level 5
Joined
May 20, 2008
Messages
138
Ok here are the triggers, I know they leak but it is of no concern since this is a single player cinematic that I will use to create a video. None of the unhide actions in this trigger actually unhides the units that are hidden earlier in the trigger

  • Trailer cin
    • Events
      • Player - Player 1 (Red) types a chat message containing -trailer as An exact match
    • Conditions
    • Actions
      • Destructible - Close Massive Ruined Gate (Horizontal) 0370 <gen>
      • Game - Set the time of day to 18.00
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 2.00 seconds
      • Cinematic - Disable user control for (All players)
      • Unit Group - Pick every unit in (Units in Camp <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Hide (Picked unit)
      • Unit Group - Pick every unit in (Units in Cinematicintro1 <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Hide (Picked unit)
      • Unit Group - Pick every unit in (Units in Cinematicintro2 <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Hide (Picked unit)
      • Wait 2.00 seconds
      • Camera - Apply Trailercam1 <gen> for Player 1 (Red) over 0.00 seconds
      • Camera - Apply Trailercam2 <gen> for Player 1 (Red) over 9.10 seconds
      • Wait 9.10 seconds
      • Camera - Apply Trailercam3 <gen> for Player 1 (Red) over 0.00 seconds
      • Camera - Apply Trailercam4 <gen> for Player 1 (Red) over 5.04 seconds
      • Wait 5.04 seconds
      • Camera - Apply Trailercam5 <gen> for Player 1 (Red) over 0.00 seconds
      • Camera - Apply Trailercam6 <gen> for Player 1 (Red) over 4.90 seconds
      • Wait 4.90 seconds
      • Unit Group - Pick every unit in (Units in Cinematicintro1 <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Unhide (Picked unit)
      • Camera - Apply Trailercam7 <gen> for Player 1 (Red) over 0.00 seconds
      • Camera - Apply Trailercam8 <gen> for Player 1 (Red) over 5.30 seconds
      • Wait 5.30 seconds
      • Unit Group - Pick every unit in (Units in Cinematicintro2 <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Unhide (Picked unit)
      • Camera - Apply Trailercam9 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 3.30 seconds
      • Camera - Apply Trailercam10 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 3.20 seconds
      • Camera - Apply Trailercam11 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 3.30 seconds
      • Camera - Apply Trailercam12 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 3.30 seconds
      • Camera - Apply Trailercam13 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 4.00 seconds
      • Cinematic - Enable user control for (All players)
      • Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 2.00 seconds
      • Cinematic - Turn cinematic mode Off for (All players)
      • Unit Group - Pick every unit in (Units in Camp <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Unhide (Picked unit)
      • Destructible - Open Massive Ruined Gate (Horizontal) 0370 <gen>
If this is yet another weird bug that only my world editor seems to have I might use this as a solution
you can use, animation and change the units vertex coloring, and set its transparency to 100%.
Still very curious why it doesn't work like I'm doing it now though
 
Level 5
Joined
May 20, 2008
Messages
138
It doesn't work because units that are hidden does not show up in the "pick every unit in location" :)

Add them to a unit group instead, then use pick every unit in unitgroup -> hide/unhide.

Ooooh it's that simple? Haha thank you very much!
 
Status
Not open for further replies.
Top