Skip to content
Gothic 2 Online - Docs
AntiCheat
Initializing search
Gothic 2 Online
Gothic 2 Online - Docs
Gothic 2 Online
Home
Changelog
Client manual
Client manual
32 Bit texture support
Console commands
Module manual
Module manual
About
Cloning project
Compiling
Creating release
Editing docs
Multiplayer
Multiplayer
Limits
Script context
Vdfs
Script reference
Script reference
Client classes
Client classes
Discord
Discord
Discord
DiscordActivity
DiscordActivityAssets
DiscordActivityParty
DiscordActivityTimestamps
DiscordPartySize
Game
Game
Camera
CollisionReport
Console
Daedalus
DaedalusSymbol
Item
Mob
MobDoor
MobInter
MobLadder
MobLockable
RigidBody
Sky
Sound
Sound3d
Timestep
TraceRayReport
Trigger
TriggerBase
Vob
World
General
General
zarray
zlist
Item
Item
ItemGround
ItemsGround
Math
Math
BBox3d
Network
Network
Packet
Npc
Npc
NpcAction
Ui
Ui
Draw
Draw3d
ItemRender
Line
Texture
Waypoint
Waypoint
Way
Client constants
Client constants
Attack
BloodMode
BodyState
BodyStateFlags
CollisionObject
Console
DaedalusFlags
DaedalusType
Hero Status
HUD
Key delay
Key
Logical key
MobInterDirection
Mouse
ObjectType
Planet
RigidBody
TraceRay
TriggerList Process
Vob
Client events
Client events
Game
Game
onMusicVolumeChange
onSoundVolumeChange
General
General
onChangeResolution
onExit
onInit
onRender
onRenderFocus
onTime
Hero
Hero
onAnim
onDamage
onDropItem
onEquip
onFocus
onFocusCollect
onLostFocus
onMusicZoneChange
onPlayerAnimEventTag
onPortalChange
onSink
onTakeFocus
onTakeItem
onUnequip
Input
Input
onChangeKeyboardLayout
onCommand
onConsole
onKeyDown
onKeyInput
onKeyUp
onPaste
Inventory
Inventory
onCloseInventory
onInventorySlotChange
onOpenInventory
Itemground
Itemground
onItemGroundCreate
onItemGroundDestroy
onItemsGroundDestroy
Mobinter
Mobinter
onMobInterStartInteraction
onMobInterStateChange
onMobInterStopInteraction
Moblockable
Moblockable
onMobLockableClose
onMobLockableOpen
Mouse
Mouse
onMouseDown
onMouseMove
onMouseUp
onMouseWheel
Network
Network
onPacket
Npc
Npc
onNpcActionFinished
onNpcActionRecv
Player
Player
onPlayerChangeColor
onPlayerChangeHealth
onPlayerChangeMana
onPlayerChangeMaxHealth
onPlayerChangeMaxMana
onPlayerChangeNickname
onPlayerChangePing
onPlayerChangeWeaponMode
onPlayerCreate
onPlayerDead
onPlayerDestroy
onPlayerHit
onPlayerInterrupt
onPlayerMessage
onPlayerParade
onPlayerRespawn
onPlayerShoot
onPlayerSpawn
onPlayerSpellCast
onPlayerSpellSetup
onPlayerTeleport
onPlayerUnspawn
onPlayerUseItem
Vob
Vob
onVobCollisionResponse
Window
Window
onWindowFocus
World
World
onWorldChange
onWorldEnter
Client functions
Client functions
Chat input
Chat input
chatInputClear
chatInputClose
chatInputGetCaretPosition
chatInputGetFont
chatInputGetPosition
chatInputGetText
chatInputIsOpen
chatInputOpen
chatInputSend
chatInputSetCaretPosition
chatInputSetFont
chatInputSetPosition
chatInputSetText
Game
Game
clearMultiplayerMessages
enable_DamageAnims
enable_NicknameId
enable_WeaponTrail
exitGame
getDayLength
getFpsRate
getLODStrengthModifier
getLODStrengthOverride
getNetworkStats
getSightFactor
getTime
getURLProtocolParams
getVobType
playVideo
setBloodMode
setDayLength
setLODStrengthModifier
setLODStrengthOverride
setSightFactor
setTime
Hash
Hash
fileMd5
Hero
Hero
disableHumanAI
getContext
getExp
getFocusNpc
getFocusVob
getHeroStatus
getLearnPoints
getNextLevelExp
getPingLimit
isFrozen
isHumanAIDisabled
setContext
setExp
setFreeze
setHeroStatus
setLearnPoints
setNextLevelExp
setPingLimit
Input
Input
disableControls
disableKey
disableLogicalKey
getGothic1Controls
getKeyDelayFirst
getKeyDelayRate
getKeyboardCodePage
getKeyboardLangName
getKeyboardLayout
getKeyboardLocaleName
getLogicalKeyBinding
isControlsDisabled
isKeyDisabled
isKeyLocked
isKeyPressed
isKeyToggled
isLogicalKeyDisabled
isLogicalKeyPressed
isMouseBtnPressed
resetLogicalKeys
saveLogicalKeys
setClipboardText
setGothic1Controls
setKeyDelayFirst
setKeyDelayRate
setLogicalKeyBinding
Interface
Interface
anx
any
getActiveMenu
getAvailableResolutions
getBarPosition
getBarSize
getCursorPosition
getCursorPositionPx
getCursorSensitivity
getCursorSize
getCursorSizePx
getCursorTxt
getHudMode
getResolution
isConsoleOpen
isCursorVisible
letterDistance
letterDistancePx
letterHeight
letterHeightPx
letterWidth
letterWidthPx
nax
nay
setBarPosition
setBarSize
setCursorPosition
setCursorPositionPx
setCursorSensitivity
setCursorSize
setCursorSizePx
setCursorTxt
setCursorVisible
setHudMode
setResolution
textGetFont
textSetFont
textWidth
textWidthPx
Inventory
Inventory
clearInventory
closeInventory
getCurrentInventorySlot
getEq
getItemBySlot
hasItem
isInventoryOpen
openInventory
Music
Music
disableMusicSystem
getMusicVolume
getSoundVolume
isMusicSystemDisabled
setMusicVolume
setSoundVolume
Npc
Npc
createNpc
destroyNpc
getNpcAction
getNpcActionType
getNpcActions
getNpcActionsCount
getNpcLastActionId
isLocalNpc
isNpcActionFinished
isNpcHosted
isRemoteNpc
spawnNpc
unspawnNpc
Player
Player
addEffect
applyPlayerOverlay
attackPlayer
attackPlayerMagic
attackPlayerRanged
attackPlayerWithEffect
drawWeapon
enablePlayerInterpolation
equipItem
getActFrame
getLastHitAniFrame
getPlayerAmulet
getPlayerAngle
getPlayerAni
getPlayerArmor
getPlayerAtVector
getPlayerBelt
getPlayerBodyState
getPlayerBodyStateFlags
getPlayerCollision
getPlayerColor
getPlayerDexterity
getPlayerFaceAnis
getPlayerFatness
getPlayerGuild
getPlayerHealth
getPlayerHelmet
getPlayerIdByPtr
getPlayerInstance
getPlayerInteractMob
getPlayerLevel
getPlayerMagicLevel
getPlayerMana
getPlayerMatrix
getPlayerMaxHealth
getPlayerMaxMana
getPlayerMeleeWeapon
getPlayerName
getPlayerPing
getPlayerPosition
getPlayerProtection
getPlayerPtr
getPlayerRangedWeapon
getPlayerReadiedWeapon
getPlayerRing
getPlayerScale
getPlayerSelectedSpellNr
getPlayerShield
getPlayerSkillWeapon
getPlayerSpell
getPlayerSpellCount
getPlayerSpellItem
getPlayerSpellNr
getPlayerStrength
getPlayerTalent
getPlayerType
getPlayerVisual
getPlayerVisualAlpha
getPlayerWaterLevel
getPlayerWeaponMode
giveItem
hitPlayer
isPlayerCreated
isPlayerDead
isPlayerInWater
isPlayerStreamed
isPlayerUnconscious
playAni
playFaceAni
playGesticulation
readySpell
removeEffect
removeItem
removePlayerOverlay
removeWeapon
setPlayerAngle
setPlayerCollision
setPlayerColor
setPlayerDexterity
setPlayerFatness
setPlayerGuild
setPlayerHealth
setPlayerInstance
setPlayerLevel
setPlayerMagicLevel
setPlayerMana
setPlayerMaxHealth
setPlayerMaxMana
setPlayerName
setPlayerOnFloor
setPlayerPosition
setPlayerScale
setPlayerSkillWeapon
setPlayerStrength
setPlayerTalent
setPlayerVisual
setPlayerVisualAlpha
setPlayerWeaponMode
stopAni
stopFaceAni
unequipItem
unreadySpell
useClosestMob
useItem
useItemToState
Renderer
Renderer
drawLine
drawLine3d
Waypoint
Waypoint
getNearestWaypoint
getNextNearestWaypoint
getWaypoint
World
World
changeWorld
getWorld
Client globals
Client globals
GameWorld
heroId
WorldTimer
Server classes
Server classes
Game
Game
Daedalus
Sky
Item
Item
ItemGround
ItemsGround
Network
Network
Packet
Npc
Npc
NpcAction
Waypoint
Waypoint
Way
Server constants
Server constants
AntiCheat
Network
Server events
Server events
Anticheat
Anticheat
onPlayerUseCheat
General
General
onBan
onExit
onInit
onTick
onTime
onUnban
Network
Network
onPacket
Npc
Npc
onNpcActionFinished
onNpcActionSent
onNpcChangeHostPlayer
onNpcCreated
onNpcDestroyed
Player
Player
onPlayerChangeColor
onPlayerChangeFocus
onPlayerChangeHealth
onPlayerChangeMana
onPlayerChangeMaxHealth
onPlayerChangeMaxMana
onPlayerChangeWeaponMode
onPlayerChangeWorld
onPlayerCommand
onPlayerDead
onPlayerDisconnect
onPlayerDropItem
onPlayerEnterWorld
onPlayerEquipAmulet
onPlayerEquipArmor
onPlayerEquipBelt
onPlayerEquipHandItem
onPlayerEquipHelmet
onPlayerEquipMeleeWeapon
onPlayerEquipRangedWeapon
onPlayerEquipRing
onPlayerEquipShield
onPlayerEquipSpell
onPlayerHit
onPlayerJoin
onPlayerMessage
onPlayerMobInteract
onPlayerRespawn
onPlayerShoot
onPlayerSpellCast
onPlayerSpellSetup
onPlayerTakeItem
onPlayerTeleport
onPlayerToggleFaceAni
Server functions
Server functions
Chat
Chat
sendMessageToAll
sendMessageToPlayer
sendPlayerMessageToAll
sendPlayerMessageToPlayer
File
File
file.read
file.write
Game
Game
exit
getDayLength
getServerDescription
getServerWorld
getTime
serverLog
setDayLength
setServerDescription
setServerWorld
setTime
Npc
Npc
clearNpcActions
createNpc
destroyNpc
getNpcAction
getNpcActionType
getNpcActions
getNpcActionsCount
getNpcHostPlayer
getNpcLastActionId
isNpc
isNpcActionFinished
npcAttackMelee
npcAttackRanged
npcSpellCast
pushNpcAction
setNpcHostPlayer
Player
Player
addBan
applyPlayerOverlay
ban
drawWeapon
equipItem
getPlayerAmulet
getPlayerAngle
getPlayerAni
getPlayerAniId
getPlayerArmor
getPlayerAtVector
getPlayerBelt
getPlayerCameraPosition
getPlayerCollision
getPlayerColor
getPlayerContext
getPlayerDexterity
getPlayerFaceAnis
getPlayerFatness
getPlayerFocus
getPlayerHealth
getPlayerHelmet
getPlayerIP
getPlayerInstance
getPlayerInvisible
getPlayerMacAddr
getPlayerMagicLevel
getPlayerMana
getPlayerMaxHealth
getPlayerMaxMana
getPlayerMeleeWeapon
getPlayerName
getPlayerPing
getPlayerPosition
getPlayerRangedWeapon
getPlayerRespawnTime
getPlayerRing
getPlayerScale
getPlayerSerial
getPlayerShield
getPlayerSkillWeapon
getPlayerSpell
getPlayerStrength
getPlayerTalent
getPlayerVirtualWorld
getPlayerVisual
getPlayerWeaponMode
getPlayerWorld
giveItem
hitPlayer
isPlayerConnected
isPlayerDead
isPlayerSpawned
isPlayerUnconscious
kick
playAni
playFaceAni
readySpell
removeItem
removePlayerOverlay
removeWeapon
respawnPlayer
setPlayerAngle
setPlayerCollision
setPlayerColor
setPlayerContext
setPlayerDexterity
setPlayerFatness
setPlayerHealth
setPlayerInstance
setPlayerInvisible
setPlayerMagicLevel
setPlayerMana
setPlayerMaxHealth
setPlayerMaxMana
setPlayerName
setPlayerPosition
setPlayerRespawnTime
setPlayerScale
setPlayerSkillWeapon
setPlayerStrength
setPlayerTalent
setPlayerVirtualWorld
setPlayerVisual
setPlayerWeaponMode
setPlayerWorld
spawnPlayer
stopAni
stopFaceAni
unequipItem
unreadySpell
unspawnPlayer
useItem
useItemToState
Streamer
Streamer
findNearbyPlayers
getSpawnedPlayersForPlayer
getStreamedPlayersByPlayer
Waypoint
Waypoint
getNearestWaypoint
getWaypoint
Shared classes
Shared classes
Game
Game
Color
DamageDescription
General
General
queue
Math
Math
Mat3
Mat4
Quat
Vec2
Vec2i
Vec3
Vec4
Mds
Mds
Mds
Shared constants
Shared constants
Context
Damage
General
Hand
Item
NPC
Reliability
Skill weapon
Talent
Weapon mode
Weather
Shared functions
Shared functions
Blob
Blob
blob.readstring
blob.tostring
blob.writestring
Event
Event
addEvent
addEventHandler
callEvent
cancelEvent
eventValue
isEventCancelled
removeEvent
removeEventHandler
toggleEvent
Game
Game
getHostname
getMaxSlots
getPlayersCount
Hash
Hash
md5
sha1
sha256
sha384
sha512
Math
Math
clamp
getDistance2d
getDistance3d
getVectorAngle
max
min
random
randomseed
round
Regexp
Regexp
regexp.captureall
Squirrel
Squirrel
getdefaultdelegate
geterrorhandler
getstacksize
getstacktop
Timer
Timer
getTimerExecuteTimes
getTimerInterval
killTimer
setTimer
setTimerExecuteTimes
setTimerInterval
Utility
Utility
getTickCount
hexToRgb
rgbToHex
sscanf
Server manual
Server manual
Configuration
Quick start
constants
AntiCheat
(server-side)
Name
Description
AC_SPEED_HACK
Represents speed hack state.