If
X_MIN <= (X of (Position of Ball)) <= X_MAX
Then
Do Something
It didnt work so I looked at the script:
if (((PointGetX(UnitGetPosition(lib1_gv_ball)) <= lv_x_MIN) && (PointGetX(UnitGetPosition(lib1_gv_ball)) >= lv_x_MAX))) {
Do Something
}
So this is wrong. Instead of "X_MIN <= (X of (Position of Ball)) " I get "PointGetX(UnitGetPosition(lib1_gv_ball)) <= lv_x_MIN" in the script which is the opposite (same with X_MAX).
Is this my fault or is this a bug?
thank you
Edit:
Condition used: "Within Bounds"
Workaround solution:
General - If (Conditions) then do (Actions) else do (Actions)
Hi,
I have the following action:
If X_MIN <= (X of (Position of Ball)) <= X_MAX Then Do Something
It didnt work so I looked at the script:
if (((PointGetX(UnitGetPosition(lib1_gv_ball)) <= lv_x_MIN) && (PointGetX(UnitGetPosition(lib1_gv_ball)) >= lv_x_MAX))) { Do Something }
So this is wrong. Instead of "X_MIN <= (X of (Position of Ball)) " I get "PointGetX(UnitGetPosition(lib1_gv_ball)) <= lv_x_MIN" in the script which is the opposite (same with X_MAX).
Is this my fault or is this a bug?
thank you
Edit: Condition used: "Within Bounds"
Workaround solution:
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(X of (Position of Ball)) >= X_MIN
(X of (Position of Ball)) <= X_MAX
Within bounds is bugged - you have to rewrite it by yourself
Instead of
it does
( for mathematically correctness I define < is equal to <= )
Trigger module bug: "Within Bounds" operator
ok, thank you