Tree Spawning Help

Azrooh

New Member
Reaction score
5
I have a trigger to randomly spawn trees around the map for my initialization, but the trees spawn on Village - Dirt even though I've set it not to. Here's my trigger:


Trigger:
  • Init Trees
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set TreeInitPoint = (Random point in (Playable map area))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain pathing at TreeInitPoint of type Walkability is off) Not equal to True
          • (Blues Base <gen> contains TreeInitPoint) Not equal to True
          • (Reds Base <gen> contains TreeInitPoint) Not equal to True
          • (Terrain type at TreeInitPoint) Not equal to Village - Dirt
        • Then - Actions
          • Destructible - Create a Summer Tree Wall at TreeInitPoint facing (Random angle) with scale (Random real number between 0.75 and 1.00) and variation (Random integer number between 0 and 9)
          • Custom script: call RemoveLocation (udg_TreeInitPoint)
        • Else - Actions



Is there anything that's causing this?
 

jig7c

Stop reading me...-statement
Reaction score
123
you might want to add
Trigger:
  • Custom script: call RemoveLocation (udg_TreeInitPoint)

after the else action..
 
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