You may use mine.
Set Variables
Events
Map initialization
Conditions
Set Player[1] = Player 1
Set Player[2] = Player 2
Set Player[3] = Player 3
Set Player[4] = Player 4
Set Player[5] = Player 5
Set Player[6] = Player 6
Set Player[7] = Player 7...
Does this trigger leak? And why? EXPLAIN PLEASE :thup:
Movments
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
If (All Conditions are True) then do...
I'm not sure but...
Kill
Events
Unit - A unit enters **** <gen>
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to ****
Actions
Wait 0.80 seconds
Unit - Add **** to (Triggering...
God bless you DarkRevenant!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
But now the unit gains abilities such "hold position" do you know how I can remove them?
And what about the animations?!
Uhm, NVM !! It doesn't work with any map!
Everytime I use a variable called "Boolean" it stops working!!
(The thanks to the boolean some variables should change)
Well, I tried the things you said I could do, but it didn't work... The line where counted to the number it should do, so I don't think thats the problem.
Well, I will try to describe the functions.
The following action is for setting the cordinate called X in front of the unit[PlayerUnit] toward Move(Move is a real variable) with the Facing units facing degrees.
Custom script: set udg_X[1] = GetUnitX(udg_PlayerUnit[1]) + udg_Move[1] *...
# Custom script: call SetUnitX(udg_PlayerUnit[GetForLoopIndexA()] , udg_X[GetForLoopIndexA()])
# Custom script: call SetUnitY(udg_PlayerUnit[GetForLoopIndexA()] , udg_Y[GetForLoopIndexA()])
There is the move unit function/action.
I have created a trigger that looks like this.....
This is the stupid trigger that doesn't work as it should do.
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Set Facing[1] = (Facing of ***** <gen>)
Custom script: set udg_X[1] =...
Why doesn't the event work:confused:
function Actions takes nothing returns nothing
//============================================================
local unit eu = gg_unit_H000_0002
local real x = GetUnitX(eu)
local real y = GetUnitY(eu)...