Jump to content

Create NPC at specific location


aoh125

Recommended Posts

Hi, thanks for reading. Im trying to create (not enable a placed npc) an npc at an xmarkerheading. Currently im using a quest with alias's spawnpoint (a direct linked ref to the xmarker i want) and banditboss (create reference to object lvlbanditboss create at spawnpoint). I use this script to start the quest

 

 

Scriptname SE_SpawnEnemyTestScript extends ObjectReference  
 
Quest Property SE_SpawnEnemyTest  Auto  
 
Event OnInit()
registerForSingleUpdateGameTime(1.0)
EndEvent
 
Event OnUpdateGameTime()
debug.notification("Onupdategametime occured")
SE_SpawnEnemyTest.Start()
if (SE_SpawnEnemyTest.IsRunning())
debug.notification("Its Running")
endIf
registerForSingleUpdateGameTime(1.0)
EndEvent

The quest will run if i set event type to none but the npc doesnt spawn. Setting the event to scripted the quest doesnt even return that its running debug notification.

 

banditboss has allow reserved and allow reuse in quest ticked.

spawnpoint has allow reserved ticked.

 

the quest priority is set to 60 (though since its activated via script im not sure thats even needed)

there are 2 stages. 0 (has start up stage ticked) and 200 (has shut down stage ticked)

 

I added the quest to SM event node under script event with shares event ticked.(when trying to make the event type scripted.)

 

Not real sure what im doing wrong here, terrible with quest creation in general and couldnt figure out how to just make this happen via a script.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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