Jump to content

Scripts on remote (unloaded?) objectref?


Recommended Posts

Hey folks,

 

I'm attempting to use OnActivate/OnClose events on an objectreference that is in a new, empty, unloaded cell, but am having no success. At first, I thought the scripts were broken, however if I move the object to my location and hit the original activator, the scripts start firing. I move the object back to the original location and I'm back to getting nothing. Am I out of luck as far as this or am I doing something wrong?

 

Any help would be greatly appreciated!

 

Edit: Well I found I can use a form instead, place a reference at me, do my stuff, then delete the reference. Whether or not this is the proper way, I don't know, so I'd still appreciate any insight~

Edited by Maduin81
Link to comment
Share on other sites

you might try creating a new instance of your object in script and do your work then destroy it. In general *(haven't found any reason to think FO4's scripting is any different) if its not loaded its not available and will not fire. Your form solution is workable and any difference in memory usage should be minimal and it may even make the destruction process cleaner.

 

Robert

Link to comment
Share on other sites

Well more I was hoping to reference a container in a static manner to the form id directly. That not working, I threw it in an empty cell but I had to assume it wasn't fully loaded, as the reference wasn't empty but events failed to fire. More, I wanted to know why the scripts failed unless I was nearby.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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