It's time to dig through Hive's model database and dust off some oldie but goldie models and enter Hive's Texturing Contest #31 : Repurposing! Click here to enter!
💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this discussion thread for the Texturing Contest #32!
Create a player group variable and make this trigger (My player group is called User_Players):
Reset User Group
Events
Map initialization
Conditions
Actions
Player Group - Remove all players from User_Players
Player Group - Pick every player in (All players controlled by a User player) and do (If (((Picked player) slot status) Equal to Is playing) then do (Player Group - Add (Picked player) to User_Players) else do (Do nothing))
You should also run this trigger every 5 seconds to see if anyone has left the game.
I forgot to tell you that if you want it to calculate the units spawned you need to create an integer variable(since it takes integer variables in arithmetics) like this one (Mine is AmountOfPlayers):
Set AmountOfPlayers = (Number of players in User_Players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to User
((Picked player) slot status) Equal to Is playing
Then - Actions
Set Integer = (Integer + 1)
Player Group - Add (Picked player) to PlayerGroup
Else - Actions
@ Rawerd: Player Groups except the (All Players)-Player group create a leak, same as (Number of Player in User_Players). Also this Do Nothing action should be deleted ._.
Edit: The integer variable is your player number variable btw
🔨 Hive's 3D Viewer has been updated! 🔨 It now supports MDX1100 which should fix a lot of issues when viewing HD models in our 3D Viewer. We encourage you to check it out for yourself and report any issues you find in the Site Discussion board.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.