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