How do you spawn doodads in a circle around a unit

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Create Trees
    Actions
        For each (Integer A) from 1 to 360, do (Actions)
            Loop - Actions
                Destructible - Create a Summer Tree Wall at ((Target point of ability being cast) offset by 256.00 towards (Real((Integer A))) degrees) facing (Random angle) with scale 1.00 and variation 3
 

HG-Bonfire

New Member
Reaction score
22
Destructible - Create a (Doodad) at ((Position of (Unit)) offset by (Number) towards (Number) degrees) facing (Random angle) with scale 1.00 and variation 0

you can use the create destructible at point with polar offset, but you cannot create a doodad, so change it to a destructible.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
Make the things huge and just make 8 around the caster and set each one to a variable with an array with an array of 8.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
kc102 said:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Create Trees
    Actions
        For each (Integer A) from 1 to 360, do (Actions)
            Loop - Actions
                Destructible - Create a Summer Tree Wall at ((Target point of ability being cast) offset by 256.00 towards (Real((Integer A))) degrees) facing (Random angle) with scale 1.00 and variation 3

I didn't use variables. You would want to use a location variable at the casting point to remove memory leaks. like...
Set Point_Cast = (Target Point Of Ablility Being Cast)

then

Destructible - Create a Summer Tree Wall at ((Point_Cast) offset by 256.00 towards (Real((Integer A))) degrees) facing (Random angle) with scale 1.00 and variation 3
 
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