What am i doing wrong here?
The gt_ScopeStart_Func always uses the second variable in my code (gv_scope). It uses the first one only the first time.
what this does:
each time a dummyeffect is used, it creates a trigger for effect-player with a mouse moved event. this newly created trigger writes x and y values to global variables and then destroys itself.
in order to alternate between different variables i'll check which one is currently null and write to it.
In game i see that it only uses the 2nd variable all the time instead of alternating between both or using first one all the time (it should alternate once if mouse isn't moved, use first one only if mouse is moved). the newly created trigger sets the trigger variable to null ( and therefore enables the variable for use again).
What am i doing wrong here?
The gt_ScopeStart_Func always uses the second variable in my code (gv_scope). It uses the first one only the first time.
what this does:
each time a dummyeffect is used, it creates a trigger for effect-player with a mouse moved event. this newly created trigger writes x and y values to global variables and then destroys itself.
in order to alternate between different variables i'll check which one is currently null and write to it.
In game i see that it only uses the 2nd variable all the time instead of alternating between both or using first one all the time (it should alternate once if mouse isn't moved, use first one only if mouse is moved). the newly created trigger sets the trigger variable to null ( and therefore enables the variable for use again).