Options
All
  • Public
  • Public/Protected
  • All
Menu

Insight Scripting Language - v1.1.4

Index

Type Aliases

CustomEventOptions: { attributes?: Attribute[]; destX?: number; destY?: number; gameTime?: number; name: string; period?: number; player?: Player; team?: Team; worldTime?: Date; x?: number; y?: number }

Options used to create a custom event, if you do not specify an option his value is inherited from the current event.

This is true for all the options except the attributes!

Type declaration

  • Optional attributes?: Attribute[]

    Optional list of attributes to be added to the event, NB: you need to specify these if you want the custom event to have attributes, they are not inherited by default from current event.

  • Optional destX?: number

    destination x coordinate of the event, only available for pass and a few other events (optional)

  • Optional destY?: number

    destination y coordinate of the event, only available for pass and a few other events (optional)

  • Optional gameTime?: number

    Game time in seconds, from the beginning of the period (optional).

  • name: string

    Name of the event (required)

  • Optional period?: number

    Game period (1, 2...) (optional).

  • Optional player?: Player

    Player to be attached to the event (optional, defaults to current event player)

  • Optional team?: Team

    Team to be attached to the event (optional, defaults to current event team)

  • Optional worldTime?: Date

    Absolute timestamp of the event (optional).

  • Optional x?: number

    x coordinate of the event (optional)

  • Optional y?: number

    y coordinate of the event (optional)

TeamDetail: { leftToRight?: boolean; players: PlayerState[]; teamId?: string }

Details of a team extrapolated through the tracking state, if the tracking data has no possession information players will be null.

Type declaration

  • Optional leftToRight?: boolean

    Attacking direction (true for leftToRight)

  • players: PlayerState[]

    players of the team

  • Optional teamId?: string

    ID of the team