In this guide, I will try to show you how to make an infection system like in Snowy Survival.
I don’t recommend to remake snowy survival as whole, try to make maybe something like Plant Survival, Snowy Survival based on One Way Out (I’m obviously not forcing you, it is your choice.)
How it works:
The players will start on the same team. When the player gets knocked out, they will be switched to team 2 (any team, doesn't really matter, anything except team 1), aka the infected team. The game will end when the infected players count is equal to total players count.Preparation (kind of)
You will need to go to settings (in your map), map options, teams, and set the teams type to cooperative.Systems
Heres is how it will look like when done:
Aight LES GET GOING.
Player Count
You gonna go to do the guide by @samalomlom, here it is:
How to make a LIVE player counter 🟨
It is pretty much explained in a great way and is easy to follow.
The only thing you’ll have to do is (after you have completed the system in his guide) place a property, name it what you want, in my case I called it “PlayerCount”, and set its type to number.
Then, go to “Property” tab in the counter, set change property to yes, and choose the property you set up before.
Infection System
Devices used:
- Lifecycle
- Trigger
- Property
- Counter
- Team Switcher
- End Game
System Placement:
Device Setup:
Lifecycle
Make sure that the lifecycle "Event" is set to "Player knocked out"Trigger
Set "When Triggered" channel to anything you want, in my case i set it to "Infected", set "visible in game" to no, go to "Configuration" tab, set "Trigger by player colission" to no, go to "Availability" tab, set "Active scope" to player, and deactivate when recieveing on channel you set for "When triggered".
Property
Name the property what you want, in my case I named it "InfectedPlayers", set Property type to number.Counter
Go to "Property" tab, set change property to yes, and put the name of property you setup for this system.Team Switcher
Set switch stratedy to "Specific team", and the team to switch to will be "Team 2"End Game
You will just have to add a channel to end the game when recieved on it, in my case I named it "EndGame":Game End Block
What this one will do is when the infected amount of people are equal to amount of people in the game, the game will end.
Go to the trigger you placed, blocks, and make a block “when triggered”.
In the block, make this script:
For broadcast on channel, place the channel name you made in End Game device.
And you’re pretty much done.
Please someone test this becasue me as an ADHD person might have forgot to add something . For me it works but idk if it will work for you.
Credits:
@samalomlom for the Player count system, here is his guide:
And I based it from this guide: