Using GetParentCell

Post » Fri Apr 08, 2011 2:48 am

I already asked about this in the OBSE thread, but haven't heard back yet, so thought I would throw it open in the hope it's just me.

How do you use GetParentCell correctly? I'm sure I had it working in the past, but now it just returns nothing every single time, even if used from the Console.

I'm running this:
Ref PCCellSet PCCell to Player.GetParentCell


It is exampled here on the wiki, http://cs.elderscrolls.com/constwiki/index.php/GetParentCell, and I'm sure I had it working once, but right now all it is returning is 0.00000. I'm running it in a GameMode Block, with an fQuestDelayTime of 0.00000001, and the latest OBSE build.

Any idea what is up?

Edit: I may be blind... Seems I DID get a response in the OBSE thread :S -- I'll try that, and leave this open for the time being, until I know if it works :D
Edit : No Luck :(
User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm

Post » Fri Apr 08, 2011 2:35 am

Maybe a bit too obvious but how did you check the value of the variable? Not just from the console with "show Quest.Var", right? Otherwise have you tried using PlayerRef instead of Player?
User avatar
ImmaTakeYour
 
Posts: 3383
Joined: Mon Sep 03, 2007 12:45 pm

Post » Fri Apr 08, 2011 3:38 am

I did just use Quest.Var, yes... I don't see the problem? (Although could just be me being dense...) Either way, the Script uses this Reference about 2 frams later to do something else, and the second part is not working at all... I've also tried clicking different things, and using "GetParentCell" "Set Quest.Var to ID.GetParentCell", "Set Quest.Var to GetParentCell"... Nothing seems to be working...

I'll give PlayerRef a try in a moment, though, thanks :)
User avatar
Red Sauce
 
Posts: 3431
Joined: Fri Aug 04, 2006 1:35 pm

Post » Fri Apr 08, 2011 1:17 am

I did just use Quest.Var, yes... I don't see the problem? (Although could just be me being dense...)
Using 'show Quest.Var' in the console does not work with a reference variable. It will always be reported as 0.0000, use 'sqv' instead to check if the variable holds a value, just to be sure. :)
User avatar
kiss my weasel
 
Posts: 3221
Joined: Tue Feb 20, 2007 9:08 am

Post » Thu Apr 07, 2011 11:09 pm

Ah, Thank-you kindly :D Apaprently, it IS working, according to SQV, but the other part isn't... :S Well, one mistry solved :D
User avatar
Claire
 
Posts: 3329
Joined: Tue Oct 24, 2006 4:01 pm


Return to IV - Oblivion