Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Runtime classServer APIGenerated

Blip

Defined in: server/api.d.ts:4198

Replicated compass and map-screen blip handle.

new Blip(id): Blip

Defined in: server/api.d.ts:4203

Creates a script wrapper for an existing blip with this ID; use Blip.create() to place one.

number

Network entity identifier.

Blip

Entity.constructor

remove(): void

Defined in: server/api.d.ts:4239

Takes this blip off every compass and map screen that shows it.

void


setVirtualWorld(world): void

Defined in: server/api.d.ts:8797

Moves this entity into another virtual world.

number

Virtual-world identifier used to partition replication and visibility.

void

Entity.setVirtualWorld


setVisibleTo(player): void

Defined in: server/api.d.ts:8803

Restricts replication of this entity to one owning connection while preserving normal range and visibility checks.

Entity | null

Player-owned entity whose connection should exclusively receive this entity, or null to clear the restriction.

void

Entity.setVisibleTo


toString(): string

Defined in: server/api.d.ts:4234

Formats this blip handle for logging and debugging.

string

The blip ID, its type and its label.

Entity.toString


static all(virtualWorld?): Blip[]

Defined in: server/api.d.ts:4253

Lists every blip the server currently has.

number

Optional virtual world to list; omitted lists every one of them.

Blip[]

One handle per live blip, in no particular order.


static create(options): Blip

Defined in: server/api.d.ts:4246

Puts a blip on the compass and map screen of every player in its virtual world, or of the one player it is private to. It is a replicated entity that is never culled by distance – a blip is for finding something far away – so it reaches players however far they are and whenever they join, and assigning position moves it for all of them. setVisibleTo works on it like on any entity.

Where the blip goes, which icon it draws with – one of Blip.types(), GeneralPoi by default – its mark state, its name on the map screen, and whether it shows on the compass and the map screen, both by default. player makes it private to that player from the start; virtualWorld puts a public one in that world, the global one by default.

boolean

string

boolean

number

Player

Vector3

string

number

Blip

The new blip handle.


static getById(id): Blip | null

Defined in: server/api.d.ts:4260

Looks a blip up by its network entity ID.

number

Network entity identifier.

Blip | null

The blip’s handle, or null when no live blip has that ID.


static removeAll(virtualWorld?): number

Defined in: server/api.d.ts:4267

Removes blips.

number

Optional virtual world to clear; omitted clears every one of them.

number

How many blips were removed.


static types(): string[]

Defined in: server/api.d.ts:4273

Every icon a blip can draw with, by the game’s own name for it, misspellings included.

string[]

The names, in the game’s own order.

compass: boolean

Defined in: server/api.d.ts:4223

Whether the blip is drawn on players’ HUD compasses.


readonly id: number

Defined in: server/api.d.ts:8765

Immutable network entity identifier.

Entity.id


label: string

Defined in: server/api.d.ts:4218

The blip’s name on the map screen, shown verbatim in place of the name the game gives its icon type; empty keeps that name. Cut to 64 bytes. The compass has no text, so it never shows this.


map: boolean

Defined in: server/api.d.ts:4228

Whether the blip is drawn on players’ map screens, for an icon the map has art for: Main, Side, Micro, Checkpoint, Dlcs, Bailiff, FistFight and Racing have none and stay on the compass. The map legend’s switch for the blip’s icon type hides it like one of the game’s own.


markState: number

Defined in: server/api.d.ts:4213

The mark’s state, forwarded to the compass and map movies as-is – what the client Blip calls state, renamed here because every entity’s state is its StateBag. What a given value draws is undocumented; 0 is what a fresh game mark carries.


position: Vector3

Defined in: server/api.d.ts:8775

Authoritative world-space position; assignment forces replicated state.

Entity.position


rotation: Vector3 | Quaternion

Defined in: server/api.d.ts:8780

Authoritative rotation; reads return a quaternion and assignments accept a quaternion or Euler angles in degrees.

Entity.rotation


readonly state: StateBag

Defined in: server/api.d.ts:8785

Arbitrary key/value state carried by this entity. The server writes it and every client that can see the entity receives it; see StateBag.

Entity.state


type: string

Defined in: server/api.d.ts:4208

Which of the game’s own compass icons the blip draws as, by the game’s own name for it – Blip.types() lists them. Assigning a name the game does not know leaves the blip as it was.


readonly virtualWorld: number

Defined in: server/api.d.ts:8770

Current virtual-world identifier.

Entity.virtualWorld