Jump to content

Change alias reference based on Boolean condition


ZofaSoldier

Recommended Posts

Posted

I need to spawn a duplicate of an npc if the original is dead and change the quest reference to point to this new npc.

 

How can I change the specific reference of an alias via a papyrus scipt?

 

If  npc1 is dead, then change alias Merchant to npc2 (duplicate of npc1) and activate it.

if npc1.GetDead==1 then "change alias to point to npc2"                
Alias_Merchant.GetReference().Enable()      //spawn inactive npc

Thanks for any tips!

                                  

Posted
if npc1.GetDead==1 then "change alias to point to npc2"                

  Alias_Merchant.forceReferenceTo(npc2)

endIf

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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