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

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