Jump to content

Spawn Unique NPC without creating duplicates


kodaxmax

Recommended Posts

I've made A custom NPC Follower which is supposed to be moved to/spawned nest to the player upon equipping the Masque of Clavicus Vile.

 

It summons him fine, but on repeated use it spawns a copy instead of moving the original.

Scriptname DBFSummonBarbas extends ObjectReference  


ActorBase Property Barbas Auto


Event OnEquipped(Actor akActor)
If (akActor == Game.GetPlayer())
Enable(Barbas) 
Actor PlayerRef = Game.GetPlayer()
Game.GetPlayer().PlaceActorAtMe(Barbas)
EndIf


EndEvent
I tried the MoveTo function listed here https://www.creationkit.com/index.php?title=MoveTo_-_ObjectReference and here https://www.creationkit.com/index.php?title=MoveTo. But despite being listed twice on the official documentation "MoveTo is not a function or does not exist" according to the papyrus compiler using;
Barbas.MoveTo(PlayerRef)

 

Edit: apologies for using the wrong Sub-forum, im not sure if i can delete this but i created a duplicate post in a more apropriate one here https://forums.nexusmods.com/index.php?/topic/8381548-spawn-unique-npc-without-creating-duplicates/. Moderators have full permission to delete or alter this one.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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