Jump to content

Home

Spawn by tag?


Pikmin

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...