Jump to content

ReferenceAlias Help


xrws31

Recommended Posts

Kinda at the end of my tether here.

 

The script below is just not sending anything to my debug logs. Yes logs are enabled.

 

I have created a new quest, given the quest a priority of 99, "start game enabled" is checked, created a quest alias, used Specific Reference to link the alias to the Player (Ref: 'PlayerRef' (00000014) to NPC_ 'Player' (00000007)), and attached the script below to this alias, ie. the player.

 

I know this is an incredibly simple script. This is me debugging to find out why the hell my other scripts using player alias aren't working.

 

Scriptname trialplayerupdate extends ReferenceAlias

Event OnLoad()
Debug.Trace("RAWR")
RegisterForUpdate(1)
endEvent

Event OnUpdate()
Debug.Trace("rawr!!")	
endEvent

 

Not a rawr to be seen in logs.

Edited by xrws31
Link to comment
Share on other sites

While that makes sense, I have the same problem with OnInit, OnCellLoad and OnCellAttach. I just need some way of setting the registerUpdate ticking. All other Events I can find are either too situational or completely irrelevant. Edited by xrws31
Link to comment
Share on other sites

Oops, didn't read your second comment. I use OnInit() in a script attached to a quest alias attached to the Player without any trouble.

 

Maybe attach a script to the Quest, and use OnInit() in the Quest script?

Edited by duggelz
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...