ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getElementPreviewState

Function

getElementPreviewState

ClientGame engineTrilogy Hub only

Returns the preview state ("czeka" waiting, "gotowy" ready, "czeka na cel" waiting for the target, "blad: ..." error) and the number of shots taken.

Syntax

string, int getElementPreviewState(preview preview)

Arguments

previewpreview
The preview.

Returns

The state and the number of shots.

Example

local state, shots = getElementPreviewState(preview)

See also