Force a special 1st person view for a certain race

Post » Sun Nov 18, 2012 9:01 pm

I wonder, is it possible to give to some races their special 1st person view? like, khajiit that automatically have a night-eye effect when they go 1st person (whether this happens during night only is another technical issue)
User avatar
Ashley Campos
 
Posts: 3415
Joined: Fri Sep 22, 2006 9:03 pm

Post » Sun Nov 18, 2012 9:49 pm

Try this on a Night Eye ability that you add to Khajiit:

GetGraphVariableInt i1stPerson == 1

Or otherwise if you use an actual script, GetAnimationVariableInt("i1stPerson") == 1

Time of day is rather easy, use the Global Variable GameHour as a condition. Night Eye is used often in dungeons as well though, while some dungeons are well-lit and others are not.
User avatar
Lilit Ager
 
Posts: 3444
Joined: Thu Nov 23, 2006 9:06 pm

Post » Sun Nov 18, 2012 6:43 pm

Try this on a Night Eye ability that you add to Khajiit:

GetGraphVariableInt i1stPerson == 1

Or otherwise if you use an actual script, GetAnimationVariableInt("i1stPerson") == 1

Time of day is rather easy, use the Global Variable GameHour as a condition. Night Eye is used often in dungeons as well though, while some dungeons are well-lit and others are not.
thanks! this would be something intensive for performance?
User avatar
Oscar Vazquez
 
Posts: 3418
Joined: Sun Sep 30, 2007 12:08 pm

Post » Sun Nov 18, 2012 9:33 pm

If you figure out a good way for nighteye to activate in the correct situation, please let me know! its something which I would like to add to the auto-cast powers mod I am working on, but I really dont know of a non-invasive way of doing this.
User avatar
jennie xhx
 
Posts: 3429
Joined: Wed Jun 21, 2006 10:28 am

Post » Sun Nov 18, 2012 7:06 pm

thanks! this would be something intensive for performance?

Just a few lines? Nah, most likely not. Computers have a lot of processing power, short and simple script stuff is usually very lightweight.
Papyrus also runs scripts in separate threads so they have far less impact on FPS than for example scripts in Oblivion.

Just always try to script as efficient as possible out of principle and then in most cases you're fine concerning performance. There's no need to be paranoid about it, just script whatever feature you want. Even if you get some performance loss, useful features are usually worth it. If not, you'll find out eventually.

If you figure out a good way for nighteye to activate in the correct situation, please let me know! its something which I would like to add to the auto-cast powers mod I am working on, but I really dont know of a non-invasive way of doing this.

You could try using GetLightLevel:

http://www.creationkit.com/GetLightLevel_-_Actor

The value represents how much light shines on the actor (used for detection). It's usually a good indicator whether Night Eye would be useful or not, although it's possible that the player character is standing under the only light source in a very dungeon. You could perhaps make it somewhat more accurate by placing an invisible actor without collision and AI turned off 10 meters in front of the player every few seconds and also check it's light value.

It's rather hard to detect through Papyrus script when exactly it is a proper situation for Night Eye to be activated. It might be better to just add an extra toggle button for it so the player can decide?
User avatar
TOYA toys
 
Posts: 3455
Joined: Sat Jan 13, 2007 4:22 am

Post » Sun Nov 18, 2012 1:56 pm

It's rather hard to detect through Papyrus script when exactly it is a proper situation for Night Eye to be activated. It might be better to just add an extra toggle button for it so the player can decide?

This is what I have done :) seems like the safest route! :D
User avatar
Sabrina Schwarz
 
Posts: 3538
Joined: Fri Jul 14, 2006 10:02 am

Post » Sun Nov 18, 2012 11:56 am

should I attach it to the race? or make it part of a racial trait/power?
User avatar
c.o.s.m.o
 
Posts: 3419
Joined: Sat Aug 12, 2006 9:21 am

Post » Sun Nov 18, 2012 11:49 am

It's probably best to only add it to the Player, preferably through an Alias or Perk.
User avatar
Jeff Tingler
 
Posts: 3609
Joined: Sat Oct 13, 2007 7:55 pm

Post » Sun Nov 18, 2012 10:35 am

what is an alias? :P
perk=racial perk?
User avatar
adame
 
Posts: 3454
Joined: Wed Aug 29, 2007 2:57 am

Post » Sun Nov 18, 2012 8:12 pm

Sounds like you have some reading to do. ;)

http://www.creationkit.com/Alias
http://www.creationkit.com/Perk
User avatar
Ludivine Poussineau
 
Posts: 3353
Joined: Fri Mar 30, 2007 2:49 pm

Post » Sun Nov 18, 2012 8:24 am

Sounds like you have some reading to do. :wink:

http://www.creationkit.com/Alias
http://www.creationkit.com/Perk
lol only Alias was necessary.
I meant if it would be feasible to give racial bonuses as a "racial perk"
User avatar
lexy
 
Posts: 3439
Joined: Tue Jul 11, 2006 6:37 pm


Return to V - Skyrim