Determine if weapon is zoomed

Post » Fri May 13, 2011 3:42 pm

I thought I remembered a simple way (as in a single function) to tell if a weapon is currently zoomed, or in "aim mode" (I don't care about a scope here). If nothing else, I know I can use FOSE functions to check if the right mouse button is pressed, but like I said, I thought there was a simpler way. Am I dreaming?
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm

Post » Fri May 13, 2011 2:34 pm

I have used "iscontrolpressed 6" without problems. I don't know of an easier way to do this.
User avatar
Hazel Sian ogden
 
Posts: 3425
Joined: Tue Jul 04, 2006 7:10 am

Post » Fri May 13, 2011 4:48 pm

Either
http://geck.gamesas.com/index.php/GetAnimAction
or
http://geck.gamesas.com/index.php/GetLastPlayerAction
can probably do it.
User avatar
steve brewin
 
Posts: 3411
Joined: Thu Jun 21, 2007 7:17 am

Post » Fri May 13, 2011 5:41 pm

Thanks guys. I guess IsControlPressed is actually the easiest way. For some reason I thought I was going to have to do something more complicated with it.
User avatar
~Sylvia~
 
Posts: 3474
Joined: Thu Dec 28, 2006 5:19 am

Post » Fri May 13, 2011 8:54 pm

Thanks guys. I guess IsControlPressed is actually the easiest way. For some reason I thought I was going to have to do something more complicated with it.


I had to create a work arond for somethign like this in my sim program for displaying messages. I used a variable to determine if the weapon equipped has a scope(which you mentioned that you didn't need), and then used the isPlayerAction = 9(?) command to see if the player is aiming down the ironsights.
User avatar
Conor Byrne
 
Posts: 3411
Joined: Wed Jul 11, 2007 3:37 pm


Return to Fallout 3