Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.
PintTheDragon edited this page Nov 4, 2020 · 2 revisions

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).

Examples

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.

Clone this wiki locally