If I wanted to add script wtyson so kindly provided to lock the mouse while you're in an event (because I use my First Person mouse to look around), what piece of script do I have to add up at the top so that ORK will understand what I want to do?
For example, if in an ORK event,
function lock cursor
else
unlock cursor
or something similar. : )
Thanks for any help.
I know I'd start with--
using UnityEngine; using System.Collections; using ORKFramework;
public class LockCursor : MonoBehaviour {
And in ORK1 the script was-- if (!GameHandler.IsControlField() || GameHandler.IsControlEvent())
In ORK Framework, you'd probably check if the player is in control:
if(ORK.Control.Blocked)
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Put that in my Mouse Look Restricted cs script and this works perfectly in an event and even in an open Menu. Player is locked in and can't look around. : )
if(ORK.Control.Blocked)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
That should do it. : )
Thanks very much!!! xoxo
And I can twist that--right? If I want to do something only when the control is not blocked--
if!(ORK.Control.Blocked)
if(!ORK.Control.Blocked)
Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games
or check out the face book page here https://www.facebook.com/ForeLoreGames
Thank you!!!!!