Перейти к основному содержанию

AddonEntityRegistry.AddonEntity

Index

Properties

Methods

Properties

readonlyid

id: number

Entity unique ID.

readonlytype

type: string

Add-on defined entity name ID.

Methods

exec

  • exec(command: string): string
  • Executes command with the entity.


    Parameters

    • command: string

      command to be executed

    Returns string

    Error message or null if the command was run successfully.

execAt

  • execAt(command: string, x: number, y: number, z: number): string
  • Executes command with the entity on the specified coordinates.


    Parameters

    • command: string

      command to be executed

    • x: number
    • y: number
    • z: number

    Returns string

    Error message or null if the command was run successfully.