• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Why are created units belongs to neutral passive?

Status
Not open for further replies.
Level 3
Joined
Apr 1, 2017
Messages
47
  • Item drop
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to Acolite
    • Actions
      • Item - Create Sacrificial dagger at (Position of Acolite)
      • Set SacDagITEM = (Last created item)
  • Sac dag
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Sacrificial dagger
    • Actions
      • Unit - Create 1 Voidwalker for (Owner of SacDagITEM) at (Position of (Triggering unit)) facing Default building facing degrees
      • Set Summonvoidwalker = (Last created unit)
      • Wait 0.01 seconds
      • Unit - Create 1 Voidwalker for (Owner of SacDagITEM) at (Position of (Triggering unit)) facing Default building facing degrees
      • Set SummonVoidWalker2 = (Last created unit)
      • Unit - Add a 15.00 second Generic expiration timer to Summonvoidwalker
      • Unit - Add a 15.00 second Generic expiration timer to SummonVoidWalker2
It does create units at the position of item owner but they somehow belong to neutral passive and I have no idea why.
 
I'm assuming that when you create and item through triggers, it will belong to the Neutral Passive player which might explain what's going on but I can't test this at the moment. Try adding an in-game message in the first trigger that'll display the owner of the item just after it is created.
 
base.gif
Sac dag
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      unit.gif
      Unit - A unit Uses an item //unit uses an item , the item will disappear prolly , then u wanna create something for owner of dropped item ? Mby it's the case why it's owned by neutral ... im not that sure i dont anymore usin' triggers
  • joinminus.gif
    cond.gif
    Conditions
    • line.gif
      joinbottom.gif
      if.gif
      (Item-type of (Item being manipulated)) Equal to Sacrificial dagger
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      join.gif
      unit.gif
      Unit - Create 1 Voidwalker for (Owner of SacDagITEM) at (Position of (Triggering unit)) facing Default building facing degrees
    • empty.gif
      join.gif
      set.gif
      Set Summonvoidwalker = (Last created unit)
    • empty.gif
      join.gif
      zzz.gif
      Wait 0.01 seconds
    • empty.gif
      join.gif
      unit.gif
      Unit - Create 1 Voidwalker for (Owner of SacDagITEM) at (Position of (Triggering unit)) facing Default building facing degrees
    • empty.gif
      join.gif
      set.gif
      Set SummonVoidWalker2 = (Last created unit)
    • empty.gif
      join.gif
      unit.gif
      Unit - Add a 15.00 second Generic expiration timer to Summonvoidwalker
    • empty.gif
      joinbottom.gif
      unit.gif
      Unit - Add a 15.00 second Generic expiration timer to SummonVoidWalker2
try to Store the owner of the unit using item , mby it will help u .
 
Status
Not open for further replies.
Back
Top