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

Creating Trees {spawning trees in front of a caster}

Status
Not open for further replies.
Level 5
Joined
Nov 14, 2008
Messages
119
Hello,thanks for viewing
This may be easy but i cant figure out.

How can i create a tree when i use a spell eg:Spawn Tree

I want the tree to be spawned infront of the casting unit but i dont want it to belong to the casting unit.i want it to be just like a normal doodad.

Thanks in advance.
 
Level 4
Joined
Apr 18, 2009
Messages
127
  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Your_Ability
  • Actions
  • Unit - Create 1 Peasant for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
    • Destructible - Create a Summer Tree Wall at (Position of (Casting unit)) facing (Random angle) with scale 1.00 and variation 0
    • -------- edit the tree/scale/variation as you want --------
This will do?

EDIT, made a dummy-unit (peasant) so u get a little more range between caster and tree
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Nah, no dummy required, just use polar offset.
  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to TreeAbility
  • Actions
    • Destructible - Create a Summer Tree Wall at (Position of (Casting unit) offset by 140 towards (Facing of (Casting Unit))) facing (Random angle) with scale xxx and variation xxx
 
Status
Not open for further replies.
Top