Suggestions for this trigger?

Troynl

New Member
Reaction score
0
hi i wanne make a map with control points but this trigger doesn't work,
and i don't know how to make 1 that works
JASS:
   Events
        Unit - Any Unit dies
    Conditions
        (Unit type of (Triggering unit)) == Mineral Mine
    Actions
        Unit - Create 1 Mineral Mine for player (Owner of (Killing unit)) at (Position of (Triggering unit)) facing 270.0 degrees (Ignore Placement)


when you kill a Mineral Mine controled by Hostle, it sometimes create a new Mineral Mine controled by hostle and not a Mineral Mine controlled by you
 

Exide

I am amazingly focused right now!
Reaction score
448
Try adding a local variable of type integer. (Name it anything. "i" works fine.)
The first thing you do in your trigger is to "Set i = Player (Owner of (Killing unit))".

Then:

Unit - Create 1 Mineral Mine for player (i) at (Position of (Triggering unit)) facing 270.0 degrees (Ignore Placement)


See if that works.
 

Frozenwind

System maker
Reaction score
99
Making a local shouldn't change it, as it's called instantly. Yet weird things happen, so give it a try.
(In wc3 6x7 == 43, instead of 42. I didn't understand that either)

Isn't there a way hostile attacks it? Include DoT or eventual suicide abilities. Cos if the mine has some suicide ability or something, it would explain why hostile gets a new one.
 

Troynl

New Member
Reaction score
0
Nope doesn't work

and frozen wind no suicide ability its just a supply depot
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top