Synapse Objects

When using the Synapse API will you encounter a lot of different Synapse Objects. SynapseObjects are Objects that inherits ISynapseObject and are a Wrapper for various other Objects in game.

This is the code of the Interface so every SynapseObject has these Properties and methods

public interface ISynapseObject
{
    public Dictionary<string, object> ObjectData { get; set; }
    public List<string> CustomAttributes { get; set; }
    public Vector3 Position { get; set; }
    public Quaternion Rotation { get; set; }
    public Vector3 Scale { get; set; }
    public GameObject GameObject { get; }
    public Rigidbody Rigidbody { get; }
    public ObjectType Type { get; }
    public ISynapseObject Parent { get; set; }
    public ISynapseObject RootParent { get; }
    public void RemoveParent();
    public void ApplyPhysics();
    public void Destroy();
    public void OnDestroy();
    public void HideFromAll();
    public void ShowAll();
    public void HideFromPlayer(SynapsePlayer player);
    public void ShowPlayer(SynapsePlayer player);
}

Every SynapseObject is assigned to one Unity Gameobject which has a Component named SynapseObjectScript that contains the actual SynapseObject.

Most SynapseObjects are stored inside the MapService and you can get all with Synapse.Get<MapService>.SynapseObjects

Here is a list of all SynapseObjects

NameDescription

Schematic

The Object which is a Schematic and therefore a parent of various other SynapseObjects

Primitive

Unity Primitive

LightSource

Unity LightSource

Target

The Shooting Targets

Door

A Door or Gate

Workstation

The Workstation

Locker

A Locker, SCP Pedestal or Weapon Container

Generator

Generator for overcharging the Heavy

Item

Item on the Map or PlayerInventory

OldGrenade

The Old Grenade from before MP2 (can't explode)

Ragdoll

A Ragdoll

Dummy

A fake Player

Custom

A Simple Gameobject without any Components by default

Room

A Custom Room or Room of Scp-939, Scp-106 or Scp-330 (since there Positon/Rotation and Scale can be changed)

ElevatorDestination

The Destination an Elevator can reach (the actual Elevator is not a SynapseObject since it is just a logic handler and not a actual GameObject)

Other

Unused by Synapse

Last updated