This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I found strange thing with Mouse events. If you know any about this - please answer a question :)
1. I launch third person camera (with Lock camera mouse relative mode On trigger).
2. Mouse is hiding.
then
- Trigger with "Player clicks mouse button" event is working fine (XYZ position of hidden mouse detected)
- Trigger with "Player moves mouse" event doesn't work (XYZ position of hidden mouse not detected)
Is this a bug? If not, how I can launch "Player moves mouse" event in my situation?
Your best option, I think, is to run an infinite loop to check if the camera angle changes.
Something like this:
Events Map Initialization Conditions Variables Actions Repeat forever Actions If Or Camera pitch != Camera_Pitch_Variable Camera yaw != Camera_Yaw_Variable Then Set Camera_Pitch_Variable = Camera pitch Set Camera_Yaw_Variable = Camera yaw Run (Mouse Move Trigger) Else Wait 0.1 game-time seconds
Camera_Pitch_Variable and Camera_Yaw_Variable are both global real variables.
I found strange thing with Mouse events. If you know any about this - please answer a question :)
1. I launch third person camera (with Lock camera mouse relative mode On trigger).
2. Mouse is hiding.
then
- Trigger with "Player clicks mouse button" event is working fine (XYZ position of hidden mouse detected)
- Trigger with "Player moves mouse" event doesn't work (XYZ position of hidden mouse not detected)
Is this a bug? If not, how I can launch "Player moves mouse" event in my situation?
Your best option, I think, is to run an infinite loop to check if the camera angle changes.
Something like this:
Camera_Pitch_Variable and Camera_Yaw_Variable are both global real variables.