• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger/Spell help, TreeWall

Status
Not open for further replies.
Level 1
Joined
Nov 26, 2010
Messages
2
Hello, i could use some help with creating a trigger for a spell im calling "Tree Wall" which is supposed to pop up trees behind u when you run which then will dissapear in about 5 seconds. The thing i actually need help with is how to place the trees BEHIND me while im running. At the moment the trees are just popping up at the location of the caster. This is pushing the caster away and placing the tree's randomly.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
^You have a leak there and the wait fcuks things up :)

  • TSB Start
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Tree Behind
    • Actions
      • Set Caster = (Triggering unit)
      • Set p1 = (Position of Caster)
      • Set p2 = (p1 offset by 150.00 towards ((Facing of Caster) - 1.00) degrees)
      • Destructible - Create a Summer Tree Wall at p2 facing (Random angle) with scale 1.00 and variation 0
      • Custom script: call RemoveLocation(udg_p1)
      • Custom script: call RemoveLocation(udg_p2)
I can create the whole spell.
 
Status
Not open for further replies.
Top