Jump to content

How to easily find files that looks for certain tags?


Recommended Posts

In my scenario, I made it so trees do not have the tag "tree". As far as I can tell, this tag is only used in one other lua file. While I have no reason to believe that the tag is used elsewhere, is there an easy way to search which files have used the HasTag("tree") or any other tag for that matter? I'd like to rule out any issues with the mod I made.

 

treesNoTag = { --[[list of tree prefabs --]] }

for k,v in pairs(treesNoTag) do
	AddPrefabPostInit(v, function(inst)
		if not GLOBAL.TheWorld.ismastersim then
	    	return inst
	      end;
	inst:RemoveTag("tree") end)
end

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...