• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Uncontrollable summoned unit

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
So I made this
upload_2019-5-4_19-38-52.png


Basically I wanted to summon a unit, which is NON-controllable, but still allied with the owner of the summoned unit, while being hostile towards every other player.
My trigger doens't work, it was an idea, but sadly it doesn't function. Now I'm looking for help :x
Thanks
 
'Unit - A unit Spawns a summoned unit' only works with abilities that spawn units on death such as Spawn Hydra and Spawn Spiders.

You should use 'Unit - A unit enters (Playable map area)' instead.

I don't think the Player Alliance needs to be set every time a unit is summoned; you could move it to the Map initialization trigger.

You should make the owner of the summoned unit (entering unit if you change the event) treat Player 23 as an ally, as well as the other way around.
 
'Unit - A unit Spawns a summoned unit' only works with abilities that spawn units on death such as Spawn Hydra and Spawn Spiders.

You should use 'Unit - A unit enters (Playable map area)' instead.

I don't think the Player Alliance needs to be set every time a unit is summoned; you could move it to the Map initialization trigger.

You should make the owner of the summoned unit (entering unit if you change the event) treat Player 23 as an ally, as well as the other way around.


upload_2019-5-4_22-56-8.png


That's how it looks now. Still doesn't work tho :/ The summoned unit is still hostile towards the player and the other way around , weird...
 
Last edited:
JASS:
function UnitDisableControl takes unit u boolean flag returns nothing
        //toggles whether a unit responds to player commands on or off. Can still respond to trigger commands.

Coming soon™
 
Status
Not open for further replies.
Back
Top