Jump to content

Spawning on co-ordinates


Korodic

Recommended Posts

I'm attempting to make an object spawn on the same co-ordinates of another NPC

 

For example, I have initially disabled an apple... I want it to spawn on an NPC I named "MyNPCREF" How would I do this via OnActivate script?

Link to comment
Share on other sites

I'm attempting to make an object spawn on the same co-ordinates of another NPC

 

For example, I have initially disabled an apple... I want it to spawn on an NPC I named "MyNPCREF" How would I do this via OnActivate script?

 

If you want to spawn a new apple on the NPC when you click an NPC, simply put this line in the OnActivate block

 

BEGIN OnActivate
PlaceAtMe Apple; Assuming apple is the object id of the actual apple object
END

 

If you want to simply move an already existing apple to the NPC on activate, create the apple, name its reference and put it somewhere. And then instead of the above line you would type AppleREF.MoveTo <NPCRef> where NPCRef is the reference id of the NPC.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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