Possible to bind 1 key to 2 actions?

Post » Thu May 17, 2012 3:57 pm

I'm just wondering, is there any way to bind Sheath/Unsheath weapons + 1st/3rd person toggle to a single key?

Basicly I would like it to switch to 1st person when weapons are out and ready for some killing, then for it to switch back to 3rd person when I put them away. Hopefully at the same time have the PoV change still bound to F so that I can switch back manualy to pick up small items and things.

After playing New Vegas with the 'New Vegas Camera Control' mod, I really liked playing the game like this, so I can actually see the character I spend hours crafting, and their cool looking gear. That and maybe I'm just too lazy to switch the views all the time manually. :confused: Without the CK, this is the easiest way I can think of doing it, although it could probably done using Script Dragon, but I have no clue at all on how to even start trying to make a script using it.
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am

Post » Thu May 17, 2012 4:29 am

Well, there's

Actor::IsWeaponDrawn  script : bool Actor::IsWeaponDrawn();  engine : bool Actor::IsWeaponDrawn();Game::ForceThirdPerson  script : void Game::ForceThirdPerson();  engine : void BSScript::StaticFunctionTag::ForceThirdPerson();Game::ForceFirstPerson  script : void Game::ForceFirstPerson();  engine : void BSScript::StaticFunctionTag::ForceFirstPerson();
So I suppose you'd keep checking if your weapon is drawn, if it is, force third person, otherwise, first person
User avatar
Eve Booker
 
Posts: 3300
Joined: Thu Jul 20, 2006 7:53 pm

Post » Thu May 17, 2012 4:13 am

http://www.mediafire.com/?qfzpj5lw77gcag9

There you go... incredibly simple, and you can't force first person when your weapon's drawn.

/*  POVWeapon for Xenus 87  I'm just wondering, is there any way to bind Sheath/Unsheath weapons + 1st/3rd person toggle to a single key?  Basicly I would like it to switch to 1st person when weapons are out and ready for some killing, then for it to  switch back to 3rd person when I put them away. Hopefully at the same time have the PoV change still bound to F  so that I can switch back manualy to pick up small items and things.  After playing New Vegas with the 'New Vegas Camera Control' mod, I really liked playing the game like this, so I  can actually see the character I spend hours crafting, and their cool looking gear. That and maybe I'm just too   lazy to switch the views all the time manually. :confused: Without the CK, this is the easiest way I can think of  doing it, although it could probably done using Script Dragon, but I have no clue at all on how to even start trying  to make a script using it.*/#include "common\skyscript.h"void main() {  CActor *player = Game::GetPlayer();  while (TRUE) {    if (Actor::IsWeaponDrawn(player)) {      Game::ForceThirdPerson();    } else {      Game::ForceFirstPerson();    }    Wait(0);  }}

Just thought, what happens if you're carrying a torch or have a spell that casts light and want to go in first person :P
I suppose you could add something like "if equipped weapon has ID of whatever"...
Maybe someone can build on this because I'm not sure how to make the logic so that you can override it with F :(
User avatar
Ricky Rayner
 
Posts: 3339
Joined: Fri Jul 13, 2007 2:13 am

Post » Thu May 17, 2012 3:37 am

Just tried it out and it seems to work fine, only it would be better to have first person when weapons are drawn.

I guess the override isn't all that important really, it just means pulling out weapons instead which is easy enough :P
User avatar
Darrell Fawcett
 
Posts: 3336
Joined: Tue May 22, 2007 12:16 am


Return to V - Skyrim