Abilities not stored in game cache

Sunchips

New Member
Reaction score
6
I have made a trigger where a unit is being transported in a special way.

When a unit enters the start of the tunnel a dummy unit is spawned at his point, storing the real unit in a game cache and then removes it. The dummy unit fades out slowly until it is fully transparent and disappear. Then the real unit is restored on the other side of the tunnel, slowly fading in from being fully transparent.

When this unit is restored, it does not restore the abilities it had when it was saved...

Trigger:
  • West to east
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Warrior
    • Actions
      • Cinematic - Disable user control for Player Group - Player 1 (Red)
      • Set HeroUnit = (Entering unit)
      • Game Cache - Store HeroUnit as Hero of Units in Hero
      • Game Cache - Store HeroUnit as Hero of Units in Hero
      • Set TempPoint = (Position of (Triggering unit))
      • Unit - Remove HeroUnit from the game
      • Unit - Create 1 Bridge Dummy (Male) for Player 1 (Red) at TempPoint facing Angle degrees
      • Set FadeOutDummy = (Last created unit)
      • Camera - Pan camera for Player 1 (Red) to (Center of Region 002 Copy <gen>) over 1.00 seconds
      • Animation - Change FadeOutDummy's vertex coloring to (100.00%, 100.00%, 100.00%) with 33.00% transparency
      • Wait 0.30 seconds
      • Game Cache - Restore Hero of Units from Hero for Player 1 (Red) at (Center of Region 002 Copy <gen>) facing 0.00
      • Set HeroUnit = (Last restored unit)
      • Animation - Change FadeOutDummy's vertex coloring to (100.00%, 100.00%, 100.00%) with 66.00% transparency
      • Animation - Change HeroUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
      • Wait 0.30 seconds
      • Animation - Change FadeOutDummy's vertex coloring to (100.00%, 100.00%, 100.00%) with 99.00% transparency
      • Animation - Change HeroUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
      • Wait 0.30 seconds
      • Unit - Remove FadeOutDummy from the game
      • Camera - Lock camera target for Player 1 (Red) to HeroUnit, offset by (0.00, 0.00) using Default rotation
      • Animation - Change HeroUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • Cinematic - Enable user control for Player Group - Player 1 (Red)
      • Selection - Add HeroUnit to selection for Player 1 (Red)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top