how to order 'Force of Nature'

mirrorman1de

Cool Member
Reaction score
4
is it possible to order a unit to cast force of nature onto at least one tree?
when i use the order in the trigger editor it needs a point as target for the ability to be cast. how can i find out a point near to the unit that contains a tree?

thx
 

Flare

Stops copies me!
Reaction score
662
You could set a boolean variable to false, Pick Every Destructable within X of <point> and either individually check them, or use PitzerMike's tree filter function. If that turns out to be true (i.e. the destructable is a tree), set the boolean to true.

After the Pick Every Destructable loop, check if the boolean is true and if it is, issue the Force of Nature order at <point>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top