Etscripting

From MyGamingTalk
Jump to navigation Jump to search


All scripts in Omni-bot are GameMonkey scripts. First of all you should read GameMonkeyScriptReference.pdf.


Global Script Functions
Scripting Types
Constants

Enemy Territory Addendum

GetCabinetData

Gets information about health or ammo cabinet. Properties CurrentAmount, MaxAmount, Rate are stored into table.

Parameters: (entity, table)

Returns: true if successful, null if not


GetCvar

Gets a game cvar. Returns zero if the cvar does not exists or if its value cannot be converted to integer.

Parameters: (name)

Returns: integer


GetGameType

Gets the current game type:

2 - single-map objective, 3 - stopwatch, 4 - campaign, 5 - last man standing

Parameters: none

Returns: integer


IsWaitingForMedic

Deprecated.


SetCvar

Sets a game cvar.

Parameters: (name, value)

Returns: true if successful, false if not