Sneaky Axolxtl Posted November 20, 2022 Share Posted November 20, 2022 I have these two player mods that are connected with each other. Pizza and Piano Since piano is more of a vengeful person I want to make it when a pizza player dies, all piano players become 1.5 times stronger until the pizza player is revived Since pizza is more of a grieving person, I want to make it when a Piano player dies, all pizza players become .25 times weaker until the piano player is revived. Is there any way to do this? Link to comment Share on other sites More sharing options...
TemporarySolutn Posted November 21, 2022 Share Posted November 21, 2022 i dont know if there is a better way but you could have something periodically check for all players and then testing the ones with the prefab "piano" or "pizza" and if they are a ghost or not, but consider that multiple people might be playing as the same character Link to comment Share on other sites More sharing options...
Sneaky Axolxtl Posted November 23, 2022 Author Share Posted November 23, 2022 On 11/21/2022 at 12:38 AM, TemporarySolutn said: i dont know if there is a better way but you could have something periodically check for all players and then testing the ones with the prefab "piano" or "pizza" and if they are a ghost or not, but consider that multiple people might be playing as the same character I know multiple people would be playing as the same character. I just want it to stay the same no matter how many characters are dead. Like Pizza's attack would stay at .25 whether there were one or five piano players dead It would go back to normal after all piano players are revived Link to comment Share on other sites More sharing options...
TemporarySolutn Posted November 23, 2022 Share Posted November 23, 2022 you could loop through all the players and check the ones with your character prefabs and if they have the ghost tag Link to comment 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