-
-
Notifications
You must be signed in to change notification settings - Fork 30
Map
The Map singleton can be accessed from the Server. Server.Map
Instantly detonates the alpha warhead.
Starts detonation of the alpha warhead as if a player activated it.
Stops detonation of the alpha warhead as if a player deactivated it.
Shakes the screen of all clients. This is the same effect when the alpha warhead detonates.
Spawns an item in the world of ItemType type
and at the position pos
.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
ItemType | type | none | The item to spawn. |
Vector | pos | none | The position to spawn it at. |
Vector | rotation | null | The rotation to spawn it at. |
Activates the Femur Breaker / 106 Recontainment Procedures. It can also deactivate it, but don't count on it.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
bool | enable | none | To enable or disable the femur breaker |
Makes a NTF announcement, like one you'd hear when MTF spawns.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
int | scpsLeft | none | The number of SCPs left in the announcement. |
int | mtfNumber | none | The number squadron (03-BRAVO). |
char | mtfLetter | none | The letter squadron (03-BRAVO). |
Makes a SCP re-contained announcement, like one you'd hear when a SCP is killed.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
string | scpNumber | none | The amount of SCPs left in the announcement. |
Player | killer | null | The killer of the SCP. |
Makes a CASSIE custom announcement. CASSIE can only pronounce a set list of phrases found here, and when a phrase cannot be pronounced, it is not said in the announcement.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
string | words | none | The words to be pronounced by the CASSIE system. |
Broadcasts a message. This message is printed to the screen for every client. isMonoSpaced
decides if the message is monospaced.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
uint | duration | none | How long the broadcast will linger on player screens. |
string | message | none | The message to display. |
bool | isMonoSpaced | none | Whether the broadcast is displayed monospaced. |
Clears the broadcasts of each client.
Gets all of the items in the world. If world_only is false, will also search through player inventories to find items. The type parameter can be used to filter the type of item to find. Also, see the static method Item.GetItems()
Parameters
Type | Name | Default | Description |
---|---|---|---|
ItemType | type | none | Filters the list by ItemType. |
bool | world_only | none | Determines if the method will also search through player inventories to find items. |
Returns:
List<Item>
Returns each pair of elevator teleport points in the world. Each individual elevator has two points that players teleport between when using elevators.
Returns:
Dictionary<Vector, Vector>
Returns all elevators in the world.
Returns:
List<Elevator>
Gets all of the generators in the world.
Returns:
Generator[]
Returns all the rooms that support the Scp079InteractionType type passed in the function.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
Scp079InteractionType | type | none | The Scp079InteractionType to filter with. |
Returns:
Room[]
Returns a Vector of a random spawn point according to the Role passed. EG: A role of Role.CLASSD
will return a random D-Class cell. A role of Role.SCP_173
will return 173's chamber.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
Role | role | none | The role to get a random spawn point of. |
Returns:
Vector
Returns a list of positions that represent all possible spawn points for that role.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
Role | role | none | The role to get all spawn points of. |
Returns:
List<Vector>
Returns the positions of all blast doors in the world.
Returns:
List<Vector>
Returns a list of all doors in the world.
Returns:
List<Door>
Returns a list of all the tesla gates in the world.
Returns:
List<TeslaGate>
Returns a list of all pocket dimension exits in the world.
Returns:
List<PocketDimensionExit>
Gets the current intercom speaker. The value returned is null most of the time, so don't forget null checks before doing anything important!
Returns:
Player
Gets the content of the intercom status message.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
IntercomStatus | intercomStatus | none | The intercom status to get the content of. |
Returns:
string
Sets the intercom speaker. This method is affected by cooldown.
Parameters:
Type | Name | Default | Description |
---|---|---|---|
Player | player | none | The new speaker |
Sets the content of the intercom status message. Keep in mind that this will only set the intercom status message of the intercom status you passed in intercomStatus
. Which means after setting the intercom content of IntercomStatus.READY, it will only display when READY. Further testing required
Parameters:
Type | Name | Default | Description |
---|---|---|---|
IntercomStatus | intercomStatus | none | The IntercomStatus to set the content to. |
string | content | none | The content. |
Has the warhead been detonated? Read only.
Field Value:
bool
Has Lower Containment been decontaminated? Read only.
Field Value:
bool
- Installation
- Config
- Server Name Variables
- Commands
-
- Admin Events
- Enviroment Events
-
Player Events
- OnPlayerHurt
- OnPlayerDie
- OnPlayerPickupItem
- OnPlayerDropItem
- OnPlayerJoin
- OnNicknameSet
- OnAssignTeam
- OnSetRole
- OnCheckEscape
- OnSpawn
- OnDoorAccess
- OnIntercom
- OnIntercomCooldownCheck
- OnPocketDimensionExit
- OnPocketDimensionEnter
- OnPocketDimensionDie
- OnThrowGrenade
- OnPlayerInfected
- OnSpawnRagdoll
- OnLure
- OnContain106
- OnMedkitUse
- OnShoot
- On106CreatePortal
- On106Teleport
- OnElevatorUse
- OnHandcuff
- OnGeneratorUnlock
- OnGeneratorAccess
- OnGeneratorInsertTablet
- OnGeneratorEjectTablet
- On079Door
- On079Lock
- On079Elevator
- On079TeslaGate
- On079AddExp
- On079LevelUp
- On079UnlockDoors
- On079CameraTeleport
- On079ElevatorTeleport
- On079StartSpeaker
- On079StopSpeaker
- On079Lockdown
- Server Round Events
- Team Events