Jump to content

Renaming a specific instance of an object?


Recommended Posts

Hi there! So, I have created a mod which disables an actor and spawns a sweetroll at their location (think, wabbajack). I also tried to make it so that the sweetroll is renamed to the actor's name. The issue with using setname(), however, is that it renames all sweetrolls, not just the specific sweetroll in question. After looking around on some similar problems, it appears that the solution might be to use quest aliases. The issue is, I don't really understand how to use a quest alias to accomplish this task. Can anyone help me out, or point me in the right direction? I would really appreciate it!

Link to comment
Share on other sites

Can you post your script? It should look something like this:

 

Potion Property FoodSweetroll Auto
ObjectReference SweetRoll

Event OnEffectStart(Actor akTarget, Actor akCaster)
    SweetRoll = akTarget.PlaceAtMe(FoodSweetroll, 1)
    akTarget.Disable() 
    SweetRoll.SetDisplayName(akTarget.GetDisplayName())
EndEvent 
Link to comment
Share on other sites

  • Recently Browsing   0 members

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