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

Blip

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

Replicated compass and map-screen blip handle.

new Blip(id): Blip

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

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:4628

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

void


setVirtualWorld(world): void

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

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:9896

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:4623

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:4642

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:4635

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:4649

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:4656

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:4662

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:4612

Whether the blip is drawn on players’ HUD compasses.


readonly id: number

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

Immutable network entity identifier.

Entity.id


label: string

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

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:4617

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:4602

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:9868

Authoritative world-space position; assignment forces replicated state.

Entity.position


rotation: Vector3 | Quaternion

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

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:9878

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:4597

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:9863

Current virtual-world identifier.

Entity.virtualWorld