What is GetCurrentScene()

Post » Sun Nov 18, 2012 12:06 pm

After hours of trial and error I found that :

If akTarget.GetCurrentScene() != None

will work to tell me if an actor is being resurrected.

I tired doing this:


if (me.isdead()) && (me.HasMagicEffectWithKeyword(MagicSummonUndead) || me.HasEffectKeyword(MagicSummonUndead)); && me.IsCommandedActor() == 0Debug. messagebox("OH NO!  I am being brought back to life!")endif

But it would not work every time in the situation I was using it. ANYWAY what my question is.... what is EXACTLY is GetCurrentScene() ?
Why would it be "more" than NONE while the actor is being resurrected? I can easily guess it is some action or animation detection of some kind but would anyone KNOW for sure about this? Wiki page for this function did not really explain this.
User avatar
Ally Chimienti
 
Posts: 3409
Joined: Fri Jan 19, 2007 6:53 am

Post » Sun Nov 18, 2012 4:46 am

My guess is that resurrection makes use of a Scene, perhaps for the animation execution and new AI packages:

http://www.creationkit.com/Scene
User avatar
Mr. Allen
 
Posts: 3327
Joined: Fri Oct 05, 2007 8:36 am

Post » Sun Nov 18, 2012 3:19 pm

In which case, that's going to give you a LOT of false positives, if you're not careful.

If you could find out which scene it was that was called it would work better. You could even hang a script on the opening phase and get an alert.
User avatar
Ludivine Poussineau
 
Posts: 3353
Joined: Fri Mar 30, 2007 2:49 pm

Post » Sun Nov 18, 2012 5:46 am

nay, it is buried under a lot of other checks. That was not really my "question" so I did not elaborate, sorry.

I was wanting to know more about the function itself, I only tried it myself via "trial and error" because I found it used in some of the scripts for the reanimation spells. And the way it was used did not give me a lot to help to understand it. Then the Wiki was no help to understand that particular function.

But thanks for tying to help anyway.

In which case, that's going to give you a LOT of false positives, if you're not careful.
If you could find out which scene it was that was called it would work better. You could even hang a script on the opening phase and get an alert.
User avatar
Allison C
 
Posts: 3369
Joined: Mon Dec 18, 2006 11:02 am


Return to V - Skyrim