• 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.

How do I spawn a unit with him selected upon spawn?

Status
Not open for further replies.
Level 13
Joined
May 10, 2009
Messages
868
There might be an invalid value set to its Requirement Field. Click on it, try to select the first Item on the list - even if there's nothing being displayed there - and delete it. Also, you can see it there through displaying object editor as raw data (Ctrl + D). For example:

Displaying it as usual:
normal.png

Displaying it as raw data:
rawdata.png

In-game:
ingame.png
 
Level 12
Joined
Dec 2, 2016
Messages
733
Thanks!
One last question if you don't mind, is there a premade ability/spell that can regrow trees? And cut them down as well?
And I'm trying to place to mana and health regen pools side by side eachother. But I can never get them to go close enough to where I want them. I tried making the collision size 0, and changing their path type but still wont let me place them down. How can I do this?
 
Last edited:
Level 11
Joined
Jun 2, 2004
Messages
849
One last question if you don't mind, is there a premade ability/spell that can regrow trees?
No.
And cut them down as well?
Some AoE abilities like Flamestrike damage trees. You can make one that only hits trees and does absurd damage.
And I'm trying to place to mana and health regen pools side by side eachother. But I can never get them to go close enough to where I want them. I tried making the collision size 0, and changing their path type but still wont let me place them down. How can I do this?
Change their pathing map. The "arcane tower, etc" one is a nice 2x2 square that should suit your needs.
 
Level 13
Joined
May 10, 2009
Messages
868
For destroying trees, you have: Flame Strike, Force of Nature, Eat Tree (Single target). For reviving them, I don't think Blizzard made one.

As for those units (fountains), they have a "pathing map" texture, and they are the real collision preventing you from placing one next to another. You can select another pathing map texture (a smaller one). In order to see the pathing map from a preplaced structure, go to the main editor window (terrain) and press P. It's something like this:

path1.png

Here's the pathing map field on the object editor:
obj1.png



I changed its original pathing map (12x12) to a smaller one (Altar of Kings - 10x10):
obj2.png


path2.png
And then:
path2b.png



If you want to know a little bit more about those Pathing Map textures, I suggest you read this tutorial - it is quite useful for your current/future project.
 
Level 9
Joined
Jun 28, 2010
Messages
52
I could of sworn there was a ability to do that. I've seen it done in a few games before, you think it's a custom spell that does that?
This must have been a custom spell yeah. You can easily regrow trees using this kind of trigger:
  • Destructible - Pick every destructible within 256.00 of (Position of (Casting unit)) and do (Actions)
    • Loop- Actions
      • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
(of course this one leaks but it's easy to fix)
 
Status
Not open for further replies.
Top