Is there a way to check to make sure that two events have occurred? For instance if you wanted to wait until both the left and right mouse buttons were pressed before running the actions.
Hey, I'm rather new to the forum but I believe you can do what you wish to accomplish by using conditions. For instance, if your event is "Any mouse button is pressed down", you could check for both buttons at the same time, or if you really wanted, you could use the conditions, Mouse clicked == Right OR Mouse clicked == Left, and have it work that way. The way to have "2 events" is having broad events and specific conditions. I hope this accomplishes what you are trying to do.
-LogicalY
I see what you mean and understand..and I think that should work for just keypresses...but for example: if I was checking for mouse movement events, and then was checking if the shift key was pressed in conditions it does not work..because the event tied to this function was not called and it gives an error in game. How can I use both events at the same time?
You can't have 2 events in one trigger, they fire off from any of them, but you should know that already.
What you need is 2 triggers - one fires off from pressing shift, and sets global variable (boolean) to true (releasing - false). Then trigger with mouse movement effect need condition / if checking if that variable is currently set to true.
You can't have 2 events in one trigger, they fire off from any of them,
but you should know that already.
What you need is 2 triggers - one fires off from pressing shift, and
sets global variable (boolean) to true (releasing - false). Then trigger
with mouse movement effect need condition / if checking if that variable
is currently set to true.
Its perfectly fine to have multiple events in a single trigger........
for example
Trigger Do Stuff after both Mouse Buttons are held
Events
User Mouse1 key down
User Mouse2 key down
Conditions
Actions
Turn off "this trigger"
Do While Condition
Conditions
Or
And
Mouse1 key state "up"
Mouse2 key state "down"
And
Mouse1 key state "down"
Mouse2 key state "up"
Actions
wait .3 seconds
if
condtions
and
Mouse1 key state "down"
Mouse2 key state "down"
actions
(do stuff because both keys are down)
Turn On "this trigger"
actually im not completely sure if there is a condition to check active key states.... but if there is this logic should do the trick
Is there a way to check to make sure that two events have occurred? For instance if you wanted to wait until both the left and right mouse buttons were pressed before running the actions.
@starKidney: Go
Hey, I'm rather new to the forum but I believe you can do what you wish to accomplish by using conditions. For instance, if your event is "Any mouse button is pressed down", you could check for both buttons at the same time, or if you really wanted, you could use the conditions, Mouse clicked == Right OR Mouse clicked == Left, and have it work that way. The way to have "2 events" is having broad events and specific conditions. I hope this accomplishes what you are trying to do. -LogicalY
I see what you mean and understand..and I think that should work for just keypresses...but for example: if I was checking for mouse movement events, and then was checking if the shift key was pressed in conditions it does not work..because the event tied to this function was not called and it gives an error in game. How can I use both events at the same time?
You can't have 2 events in one trigger, they fire off from any of them, but you should know that already.
What you need is 2 triggers - one fires off from pressing shift, and sets global variable (boolean) to true (releasing - false). Then trigger with mouse movement effect need condition / if checking if that variable is currently set to true.
Its perfectly fine to have multiple events in a single trigger........
for example
Trigger Do Stuff after both Mouse Buttons are held
actually im not completely sure if there is a condition to check active key states.... but if there is this logic should do the trick