Archived

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

Please be aware that the content of this thread may be outdated and no longer applicable.

lbphero

How do i add tags to existing prefabs?

Recommended Posts

lbphero    243

I want to add a tag to all deciduous trees. How would i do that in a mod?

Share this post


Link to post
Share on other sites
Hornete    819
AddPrefabPostInit("InsertPrefabHere", function()
	inst:AddTag("thetagyouwannaadd")
end)

There's also AddComponentPostInit, AddStategraphPostInit, AddClassPostConstruct and more. you can find this in the modutil.lua

 

Share this post


Link to post
Share on other sites
lbphero    243
38 minutes ago, Omaremad74 said:

helpful stuff

Had no idea about modutil! thanks a lot!

Share this post


Link to post
Share on other sites