Pikmin Posted August 8, 2008 Share Posted August 8, 2008 what function can i use to spawn and npc by tag? Link to comment Share on other sites More sharing options...
Marius Fett Posted August 8, 2008 Share Posted August 8, 2008 Get a spawn by ResRef script, and substitute the ResRef part for Tag I assume? Link to comment Share on other sites More sharing options...
DarthStoney Posted August 9, 2008 Share Posted August 9, 2008 what function can i use to spawn and npc by tag? This is one of the easiest ways, the waypoint is added to the .git file as to where you want the npc to spawn. void main() { CreateObject(1, "[color="Red"]npc .utc[/color]", GetLocation(GetObjectByTag("[color="Red"]tag of waypoint[/color]", 0)), 0); } Link to comment Share on other sites More sharing options...
glovemaster Posted August 9, 2008 Share Posted August 9, 2008 I guess you could always set the tag of the NPC to be the same as the ResRef, but otherwise you can't as there is no function defined in the game and probably due to different variants of the same NPC with the same Tag, or sometimes different NPC's all together. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.