HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Disable F3 Camera Mode

View previous topic View next topic Go down 
AuthorMessage
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 483
Join date : 2014-02-09
Age : 19

PostSubject: Disable F3 Camera Mode   Thu Nov 20, 2014 4:05 am

In MagixUnitManager, find void updateUnit(MagixUnit *unit, const FrameEvent &evt, bool isPlayer)

Add this inside:

Code:
      if(isPlayer) {
         if (mWorld->getWorldName() == "Map Name" || mWorld->getWorldName() == "Map Name2")
       {
            if (mCamera->getCameraMode()==CAMERA_FREE) mCamera->setCameraMode(CAMERA_LOCKED);
         }
      }

This code makes it so when a player hits F3 in the specified map, it changes to F1 camera mode

________________________________


Last edited by Hyper on Sat Dec 06, 2014 10:18 pm; edited 1 time in total
Back to top Go down
http://azoptaos.boards.net/
Dead Account

avatar

Male Posts : 531
Join date : 2013-06-17

PostSubject: Re: Disable F3 Camera Mode   Sun Nov 23, 2014 6:53 am

This will especially help in item/easter egg hunts! Thankyou!
Back to top Go down
 
Disable F3 Camera Mode
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: DOWNLOADABLE CONTENT :: Programming Features-
Jump to: