. . . Posted August 21, 2024 Share Posted August 21, 2024 For example if I want to make specific mob's state have the busy tag how would I do that without completely remaking the state just to add that one tag or is that what I have to do? Link to comment https://forums.kleientertainment.com/forums/topic/159126-how-do-i-insert-state-tags-into-a-state-for-an-entity/ Share on other sites More sharing options...
-LukaS- Posted August 25, 2024 Share Posted August 25, 2024 (edited) You can use AddStategraphPostInit, like this for example: AddStategraphPostInit("STATEGRAPH_NAME", function(self) local state = self.states["STATE_NAME"] -- Get the state you want to modify state.tags = { "TAG_NAME" } -- For completely overriding the tags table table.insert(state.tags, "TAG_NAME") -- For adding a new tag into the table end) Edited August 25, 2024 by -LukaS- 1 Link to comment https://forums.kleientertainment.com/forums/topic/159126-how-do-i-insert-state-tags-into-a-state-for-an-entity/#findComment-1743537 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