Hotkey to increase/decrease FOV

Next
 From:  j0zen (DOMINIK)
9330.1 
Hello,

i wasn't able to find a script that increases/decreases FOV by a given step each time i press the hotkey. Is this possible in MoI?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9330.2 In reply to 9330.1 
Hi Dominik,

re:
> i wasn't able to find a script that increases/decreases FOV by a given step each time i
> press the hotkey. Is this possible in MoI?

Please try these pasted in as the "command" part of a shortcut key:

script: /* Widen field of view */ moi.ui.mainWindow.viewpanel.getViewport('3d').fieldOfViewAngle *= 1.1;

script: /* Decrease field of view */ moi.ui.mainWindow.viewpanel.getViewport('3d').fieldOfViewAngle *= 0.9;

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  j0zen (DOMINIK)
9330.3 In reply to 9330.2 
Awesome Michael! I changed the script to +=5 and -=5 to get even increments, exactly what i was looking for. Thank you again!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  nameless
9330.4 
This is great! Added ;)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All