How to make a creep drop an item?

nabbig2

New Member
Reaction score
43
I have it so that a creep is spawned when a certain amount of time has passed. How do I edit what items that creep can drop? Thanks.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
896
Then you need to trigger it.
Unit Dies
<Conditions if you want them>
Create <Some Item> at Location of Triggering Unit
 

nabbig2

New Member
Reaction score
43
Then you need to trigger it.
Unit Dies
<Conditions if you want them>
Create <Some Item> at Location of Triggering Unit

Thanks, but how do I select that creep in the trigger page, if it isn't on the map until the game starts?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
896
Well, you'll want to store it in a Unit variable when it's created.
So, after you create it in that trigger, add the line:
Set <Name Of Variable Here> = Last Created Unit

Then, in the trigger I showed, make the condition that:

Dying Unit is Equal to <Name Of Variable>

and finish with the item action.

See if you can get that to work.
 

nabbig2

New Member
Reaction score
43
Well, you'll want to store it in a Unit variable when it's created.
So, after you create it in that trigger, add the line:
Set <Name Of Variable Here> = Last Created Unit

Then, in the trigger I showed, make the condition that:

Dying Unit is Equal to <Name Of Variable>

and finish with the item action.

See if you can get that to work.


Thanks, but I have no clue how to store a unit in a variable...can you explain please?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top