I want to display certain units for only certain players.
Since I think it is important for how it works, the units are essentially just dummies used for their models / animation. They have locust and are basically not interacted with in any way. All they do is appear and then die after their animation plays. I also plan to reuse these units, so they may need to be hidden and shown to different players. If that can't be done, I think I can work a solution out so each player has their own animation dummies.
I want to make it so these dummies do not appear for certain players. I know I can use GetLocalPlayer() to run specific code for only specific players, but how do I hide and show the unit?
I read somewhere that I can just set their transparency to 100%, but is that the best option? I thought there was a HideUnit() function to just hide them, but I can't seem to find it and I don't even know what it would do if it existed.
Since I think it is important for how it works, the units are essentially just dummies used for their models / animation. They have locust and are basically not interacted with in any way. All they do is appear and then die after their animation plays. I also plan to reuse these units, so they may need to be hidden and shown to different players. If that can't be done, I think I can work a solution out so each player has their own animation dummies.
I want to make it so these dummies do not appear for certain players. I know I can use GetLocalPlayer() to run specific code for only specific players, but how do I hide and show the unit?
I read somewhere that I can just set their transparency to 100%, but is that the best option? I thought there was a HideUnit() function to just hide them, but I can't seem to find it and I don't even know what it would do if it existed.