Core

Core represents your ability to identify and interact directly with the running kOS processor. You can use it to access the parent vessel, or to perform operations on the processor’s part. You obtain a CORE structure by using the bound variable core.

structure CORE
Members
Suffix Type
All suffixes of kOSProcessor CORE objects are a type of kOSProcessor
VESSEL Vessel
ELEMENT Element
TAG The kOS nametag on the part this CPU runs on
VERSION Version
CURRENTVOLUME Volume
MESSAGES MessageQueue
CORE:VESSEL
Type:VesselTarget
Access:Get only

The vessel containing the current processor.

CORE:ELEMENT
Type:Element
Access:Get only

The element object containing the current processor.

CORE:VERSION
Type:VersionInfo
Access:Get only

The kOS version currently running.

CORE:TAG
Type:String
Access:Get/Set

The kOS name tag currently assigned to the part this core is inside. This is the same thing as Core:part:tag.

CORE:CURRENTVOLUME
Type:Volume
Access:Get only

The currently selected volume for the current processor. This may be useful to prevent deleting files on the Archive, or for interacting with multiple local hard disks.

CORE:MESSAGES
Type:MessageQueue
Access:Get only

Returns this processsor’s message queue.