Item Drop Problem

Goober4473

TH.net Regular
Reaction score
7
I have a neutral passive unit that will turn hostile if it or any of its allies are damaged by the player. It has a 100% chance of dropping an item, but it never does. What is the reason for this, and is there a way to fix it?
 
S

sorryre

Guest
you could use triggers and put events, a unit (what ever u want to happen),actions create (whatever your item is). simple!hope i sovled ur problem!
 
M

Mythic Fr0st

Guest
Yea, you could use triggers
Variables:
Loc, point, no array

Code:
Event
   - A unit dies
Conditions
   - Unit type of dying unit equal to Your_Unit
Actions
   - set Loc = position of dying unit
   - Create 1 Your_Item at Loc
   - call RemoveLocation(udg_Loc)
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
why do u use variable and simply not making create 1 item at position of dying uint?
 
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