OnLoad() event not firing for the Player?

Post » Thu Jun 21, 2012 6:48 am

I can never get this to work. I never see my debug message, or anything. Any help guys?
User avatar
Mrs shelly Sugarplum
 
Posts: 3440
Joined: Thu Jun 15, 2006 2:16 am

Post » Wed Jun 20, 2012 6:59 pm

maybe the player is always loaded in memory

if you are using this on a script attached to a reference alias (specific reference) i would assume OnLoad would never fire because of the permanent persistence
User avatar
Vicky Keeler
 
Posts: 3427
Joined: Wed Aug 23, 2006 3:03 am

Post » Thu Jun 21, 2012 12:22 am

In documentation they say this event is not fired always, OnCellAttach is preconized instead
didin't test it by myself
http://www.creationkit.com/OnLoad_-_ObjectReference
User avatar
JERMAINE VIDAURRI
 
Posts: 3382
Joined: Tue Dec 04, 2007 9:06 am

Post » Thu Jun 21, 2012 8:04 am

I had trouble with this too. I need some event that occurs whenever the player "goes through a load screen" and onload() isn't gunna work.

I tried "oncellattach()" but that didnt work either.
User avatar
Farrah Barry
 
Posts: 3523
Joined: Mon Dec 04, 2006 4:00 pm

Post » Thu Jun 21, 2012 10:30 am

OnLocationChange ? see here: http://www.creationkit.com/OnLocationChange_-_Actor
User avatar
Benito Martinez
 
Posts: 3470
Joined: Thu Aug 30, 2007 6:33 am

Post » Thu Jun 21, 2012 10:31 am

OnLocationChange ? see here: http://www.creationkit.com/OnLocationChange_-_Actor
That works on a Player alias or tacked directly onto Bendu. Good call! :)
User avatar
Wanda Maximoff
 
Posts: 3493
Joined: Mon Jun 12, 2006 7:05 am

Post » Wed Jun 20, 2012 7:06 pm

OnLocationChange ? see here: http://www.creationkit.com/OnLocationChange_-_Actor

Wow, good call. Thanks!
User avatar
John Moore
 
Posts: 3294
Joined: Sun Jun 10, 2007 8:18 am


Return to V - Skyrim