-
Notifications
You must be signed in to change notification settings - Fork 2
Infect
Infect is a command that makes it very easy to make infection-type events. It let's you specify a class that a player will become after they are killed by a player with a specific class. Any modifications to that class (teleports, items, health, etc) will automatically be applied when a player gets "infected". Here's how it looks:
infect oldClassId classId [soft]
The first argument of this command (oldClassId
) is the classId that the player must be to be infected. The second (classId
) is the ID of the class that the player will get turned into. The third argument (soft
) is optional. If it is included, the player will stay in their current location instead of the default spawnpoint for their role (or a custom teleport location if it is defined).
Here is an example for the event "Peanut Infection", where every Class-D gets turned into SCP-173:
infect 1 0 soft
This means that every Class-D will become SCP-173, and they will be spawned where they were killed instead of in 173's containment chamber.