Korodic Posted August 5, 2011 Share Posted August 5, 2011 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 More sharing options...
Glenstorm Posted August 6, 2011 Share Posted August 6, 2011 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 More sharing options...
Korodic Posted August 6, 2011 Author Share Posted August 6, 2011 thanks, I didn't know the .moveto could be used on the NPC to move directly to another npc. Link to comment Share on other sites More sharing options...
Recommended Posts