Making Unit invisble.

CysticCraze

New Member
Reaction score
12
So I want to make a unit invisible after their generic timer runs out, how would I do this?

My trigger.

Code:
ItemSet1
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Dark Troll
    Actions
        Unit - Create 1 Loot for Player 1 (Red) at ((Position of (Dying unit)) offset by (0.00, 0.00)) facing Default building facing degrees
        Set Lootgrp = (Last created unit)
        Unit - Add a 45.00 second Generic expiration timer to Lootgrp
        Set RandomInteger1 = (Random integer number between 1 and 100)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomInteger1 Less than or equal to 5
            Then - Actions
                Hero - Create Worn Sword and give it to (Last created unit)
                Hero - Create Copper and give it to (Last created unit)
            Else - Actions
                Hero - Create Copper and give it to (Last created unit)
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
invisible as in windwalk invisible or hidden?

Edit:
Well, replace the part
Code:
Unit - Create 1 Loot for Player 1 (Red) at ((Position of (Dying unit)) offset by (0.00, 0.00)) facing Default building facing degrees
just create a timer . U need a timer variable first.
And then new trigger.
Event - Trigger expired
Actions - Whatever u wan to do
(hide) or (give ability windwalk, order unit to windwalk, remove ability windwalk)
But if u hide it, u need to unhide somewhr.
Use this only if urs doesnt work.(weird tht urs isnt)
 

gameman

It's been a long, long time.
Reaction score
96
Code:
Animation - Change No unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency

by the way, an expiration timer kills the unit so it will fire your trigger again.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Yeah, but look at the condition... Only when dark trolls die, will the trigger fire.
 

CysticCraze

New Member
Reaction score
12
Well the unit "loot" is a custom model of a bag, that has a inventory filled with random items. Sorta Like Wow, but it has no death animation and I just want it to disapear when the time is up.

invisible as in windwalk invisible or hidden?

Edit:
Well, replace the part

Code:
Unit - Create 1 Loot for Player 1 (Red) at ((Position of (Dying unit)) offset by (0.00, 0.00)) facing Default building facing degreesjust create a timer . U need a timer variable first.
And then new trigger.
Event - Trigger expired
Actions - Whatever u wan to do
(hide) or (give ability windwalk, order unit to windwalk, remove ability windwalk)
But if u hide it, u need to unhide somewhr.
Use this only if urs doesnt work.(weird tht urs isnt)

Can you give me a trigger and the variable type?

And another thing, Ill need this to happen on miltiple loots at teh same time, so how do I make it work on them all, but not at the same time? (When the generic timer ends)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top