Jump to content

Problem finding out what a remote NPC has equipped


PJMail

Recommended Posts

Yes persistent as a script property (until cleared).

Yes persistent as a quest alias (until cleared).

No persistent as a linkedref.

Thanks SKK I will try and remember that list!

It does mean the NPC I am trying to unequip is persistent.

Link to comment
Share on other sites

Well - the issue was the way the Unequipall() was called. I had it in a procedure that I called remotely from a script on an ActiveMagicEffect.

I don't know why this made it act so differently, as the procedure was in a script attached to the NPC - so still ran in the context of that NPC, not the MagicEffect.

Link to comment
Share on other sites

no remote onitemunequipped events occur from that NPC.

Yeah, noticed that when making the interior home functionality for concord; It remote spawns and moves around clones of settlers and the lack of an unequip event firing under these circumstances confuses my HHSOutfit3 script, so will require a workaround. Not a show stopper for me, in this case.

 

But: To completely avoid all the usual equipment related headaches, I defined an outfit data script that is attached to the clones and that stores the items the clone is supposed to equip. This equipment is then forcibly applied by the clone controller as the clones load in. Perhaps a similar approach can work for the FPV pilot?

Link to comment
Share on other sites

Thanks niston - I have resolved it for now by 100% making sure the remote event registration (and unequip calls) runs in the context of an NPC by making it run in the ontimer event. Just remotely calling the procedure did not work correctly.

 

Latest issue is trying to stop that same NPC being reset when unloaded... Not all the time mind you, which is why I haven't noticed it before...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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