Jump to content

LinkedRef little problem


kitcat81

Recommended Posts

I`ll be thankful for any help. Ran into a quite weird issue and can`t find anything about it :/

And the wiki page for "linked ref" does not even open for me.

I used an example from some vanilla script and set one object to be linked to another which allowed me to reduce number of objects.

I also took care about setting the linked ref back to "none" in case the object is being destroyed ( This is a craftable object with a script on it)

And everything seemed fine...until I found out that even if I store or scrap it, it does not get deleted, only disabled. But It stays there forever marked as [T] [PP] (temporary papyrus property as I understand). The only way to remove the object was to use console command "ForcePersistent False". Spend a few hours testing the script, removing different parts and it happens that setting linked ref made my object persistent forever ( even if the link was removed and the second object was deleted). Removing this part of the script fixed the issue and all new objects were scrapped without any problems.

 

This is the code I used for it

On Placed Event :

SetLinkedRef(AnotherObject, MyCustomKeyword)

On being Scrapped:

SetLinkedRef(None, MyCustomKeyword)

I also tried different ways like

SetLinkedRef(None, None) etc..But nothing really helps to prevent it. Tried to remove the linked ref on other events....But no results.. The object returns zero linked refs but can`t be deleted.

I wonder should it be like this and are there any ways to get rid of this not nice side effect.

 

Link to comment
Share on other sites

Is it a 404 on the linked ref page? Try the cached version, if googles got one available.

Hey, thank you for the idea , worked that way :) . I`ve read the page, but it has no info on any problems like this . It just tells how to set linked ref which I already know . I would not even know about this problem unless I had a magic effect that is supposed to find some random objects of this type.

I guess I can use some another way to point at the object...withoyt linked refs... Just was hoping maybe someone else is using linked refs for objects and can test it too to see if it happenes only in my game.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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