Primalflower Posted May 22, 2019 Share Posted May 22, 2019 I want to add a tag to all deciduous trees. How would i do that in a mod? Link to comment https://forums.kleientertainment.com/forums/topic/106515-how-do-i-add-tags-to-existing-prefabs/ Share on other sites More sharing options...
Hornete Posted May 22, 2019 Share Posted May 22, 2019 AddPrefabPostInit("InsertPrefabHere", function() inst:AddTag("thetagyouwannaadd") end) There's also AddComponentPostInit, AddStategraphPostInit, AddClassPostConstruct and more. you can find this in the modutil.lua Link to comment https://forums.kleientertainment.com/forums/topic/106515-how-do-i-add-tags-to-existing-prefabs/#findComment-1198345 Share on other sites More sharing options...
Primalflower Posted May 22, 2019 Author Share Posted May 22, 2019 38 minutes ago, Omaremad74 said: helpful stuff Had no idea about modutil! thanks a lot! Link to comment https://forums.kleientertainment.com/forums/topic/106515-how-do-i-add-tags-to-existing-prefabs/#findComment-1198360 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now