This formation triggers is Bugging hard

Edward

New Member
Reaction score
2
This trigger is meant to line 2 to 12 units up in a vertical line.

The first bug, is a bug I had anticipated.

I want each unit that red has selected stored in an array. The only option that allows me to do that is "Random unit in Unit_Group." That unit group variable is set to "currently selected by player 1."

The problem is that is can select the same unit multiple times, leaving other units out.

The second bug is that they do line up, but in close groups of 3 or 4, but each group is very far from another. This is how it looks (horizontally).\

XXX XXXX XXX

Rep bonus if you know that problem.

Trigger:
  • Verticle Line
    • Events
      • Player - Player 1 (Red) types a chat message containing -v as An exact match
    • Conditions
    • Actions
      • Set FormVertRedGroup = (Units currently selected by Player 1 (Red))
      • Set FormVertRedFulcrum = (Random unit from FormVertRedGroup)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set FormVertRed[(Integer A)] = (Random unit from FormVertRedGroup)
          • Unit - Turn collision for FormVertRed[(Integer A)] Off
          • Unit - Move FormVertRed[(Integer A)] instantly to ((Position of FormVertRedFulcrum) offset by (75.00 x (Real((Integer A)))) towards 270.00 degrees), facing 0.00 degrees
 

Pyropenguins

New Member
Reaction score
4
It can select the unit again because its seleccting a random unit from FromVertRedGroup each time an theres always gonna b a possiblity it will be selcted like that. A solution to the problem would b to remove the random unit from FromVertRedGroup after it is slected

And on the 2nd one do u want it to b XXXXXXXXXX?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top