xrws31 Posted February 20, 2012 Share Posted February 20, 2012 (edited) 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 February 20, 2012 by xrws31 Link to comment Share on other sites More sharing options...
Cipscis Posted February 20, 2012 Share Posted February 20, 2012 I'm guessing OnLoad isn't firing because, presumably, the player's 3D is always loaded, and OnUpdate won't fire because the player isn't registered for any updates. Cipscis Link to comment Share on other sites More sharing options...
xrws31 Posted February 21, 2012 Author Share Posted February 21, 2012 (edited) 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 February 21, 2012 by xrws31 Link to comment Share on other sites More sharing options...
xrws31 Posted February 21, 2012 Author Share Posted February 21, 2012 Bump. I can't be the only one trying to do something like this. Link to comment Share on other sites More sharing options...
duggelz Posted February 21, 2012 Share Posted February 21, 2012 (edited) 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 February 21, 2012 by duggelz Link to comment Share on other sites More sharing options...
Recommended Posts