Argonium Posted January 8, 2020 Share Posted January 8, 2020 (edited) Having many tags is the issue. I really want some other tags have an opportunity to plant seeds but it is only restricted by "plantkin"? Can I have 2 restricted tags without removing "plantkin" one? inst.components.deployable.restrictedtag = "plantkin" Edited January 10, 2020 by Vlad Undying Link to comment https://forums.kleientertainment.com/forums/topic/114858-solved-having-more-than-1-restricted-tag/ Share on other sites More sharing options...
Argonium Posted January 9, 2020 Author Share Posted January 9, 2020 Solution: AddPrefabPostInit("seeds", function(inst) if GLOBAL.TheWorld.ismastersim then inst.components.deployable.restrictedtag = nil inst.components.deployable.IsDeployable = function(self,deployer) return deployer:HasTag("plantkin") or deployer:HasTag("canplantseeds") end end end) AddPrefabPostInit("veggies", function(inst) if GLOBAL.TheWorld.ismastersim then inst.components.deployable.restrictedtag = nil inst.components.deployable.IsDeployable = function(self,deployer) return deployer:HasTag("plantkin") or deployer:HasTag("canplantseeds") end end end) 1 Link to comment https://forums.kleientertainment.com/forums/topic/114858-solved-having-more-than-1-restricted-tag/#findComment-1297683 Share on other sites More sharing options...
Ultroman Posted January 9, 2020 Share Posted January 9, 2020 (edited) I was about to post that you could study the deployable component to see if there was somewhere you could hook in, and would you look at that? You already found it Edited January 9, 2020 by Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/114858-solved-having-more-than-1-restricted-tag/#findComment-1297725 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