|flag||Set to true or false to enable or disable orientation locking.|
With this function you can "lock" your device to the current
orientation until such time as you "free" it to allow all Global
Game Settings enabled orientations again. Note that you likely
want to confirm the orientation is as desired before
if os_type == os_android || os_type == os_ios
The above code checks the OS type and if it is either Android or an iOS then the orientation locking is flagged as true.