- Joined
- Oct 12, 2008
- Messages
- 1,570
Hi people,,
Working on a little system, i found a stupid thing!
I want to increase the custom value of every unit in a unit group every one in a while,,
But somehow, it increases the custom value, by 2 =S
Here is the part of the trigger that is wrong:
Can you guys tell me why it is increased by 2??
Tnx,,
Yixx,,
Working on a little system, i found a stupid thing!
I want to increase the custom value of every unit in a unit group every one in a while,,
But somehow, it increases the custom value, by 2 =S
Here is the part of the trigger that is wrong:
-
Set zz_Destr_Group = (Units within 150.00 of (Position of (Picked destructible)))
-
Unit Group - Pick every unit in zz_Destr_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current order of (Picked unit)) Equal to (Order(smart))
-
-
Then - Actions
-
Set zz_Destr_CV1 = (Custom value of (Picked unit))
-
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
-
-
Else - Actions
-
-
-
Can you guys tell me why it is increased by 2??
Tnx,,

Yixx,,