Skip to main content

sc

All data inside the sc namespace!


Functions

getDisplays

sc.getDisplays()

Gets all connected displays from the computer.

Returns:

  • [ Display[] ] All connected displays from the computer.

getDrives

sc.getDrives()

Gets all connected drives from the computer.

Returns:

  • [ Drive[] ] All connected drives from the computer.

getHolograms

sc.getHolograms()

Gets all connected holograms from the computer.

Returns:

  • [ Hologram[] ] All connected holograms from the computer.

getTerminals

sc.getTerminals()

Gets all connected terminals from the computer.

Returns:

  • [ Terminal[] ] All connected terminals from the computer.

getRadars

sc.getRadars()

Gets all connected radars from the computer.

Returns:

  • [ Radar[] ] All connected radars from the computer.

getNetworkPorts

sc.getNetworkPorts()

Gets all connected network ports from the computer.

Returns:

  • [ NetworkPort[] ] All connected network ports from the computer.

getCameras

sc.getCameras()

Gets all connected cameras from the computer.

Returns:

  • [ Camera[] ] All connected cameras from the computer.

getSpeakers

sc.getSpeakers()

Gets all connected speakers from the computer.

Returns:

  • [ Speaker[] ] All connected speakers from the computer.

getKeyboards

sc.getKeyboards()

Gets all connected keyboards from the computer.

Returns:

  • [ Keyboard[] ] All connected keyboards from the computer.

getMotors

sc.getMotors()

Gets all connected motors from the computer.

Returns:

  • [ Motor[] ] All connected motors from the computer.

getLasers

sc.getLasers()

Gets all connected lasers from the computer.

Returns:

  • [ Laser[] ] All connected lasers from the computer.

getGPSs

sc.getGPSs()

Gets all connected GPSs from the computer.

Returns:

  • [ GPS[] ] All connected GPSs from the computer.

getSeatControllers

sc.getSeatControllers()

Gets all connected SeatControllers from the computer.

Returns:

  • [ SeatController[] ] All connected SeatControllers from the computer.

getRadarWarningReceivers

sc.getRadarWarningReceivers()

Gets all connected RadarWarningReceivers from the computer.

Returns:


CollisionDetector

sc.getCollisionDetectors()

Gets all connected CollisionDetectors from the computer.

Returns:


getPowerComponents

sc.getPowerComponents()

Gets all connected PowerSources from the computer.

Returns:

  • [ PowerSource[] ] All connected PowerSources from the computer.

getReg

sc.getReg( registerName )

Gets a value of a register.

info

The name given should be the name of an Input register.

Arguments:

  • registerName [ string ] The name of the register to read.

Returns:

  • [ number ] The value it's receiving (For things like logic gates: 0 is Off, 1 is On).

setReg

sc.setReg( registerName, power )

Sets a value of a register.

info

The name given should be the name of an Output register.

Arguments:

  • registerName [ string ] The name of the register to write.
  • power [ number ] The value to set it to (This is power!).

isUnsafeEnvEnabled

sc.isUnsafeEnvEnabled()

Returns true if unsafe env is enabled, else false for safe env.

Returns:

  • [ boolean ] If its in unsafe env or not.