Etscripting
All scripts in Omni-bot are GameMonkey scripts. First of all you should read GameMonkeyScriptReference.pdf.
- Creating a script
- Debugging tips
- Triggers
- Goals: Availability, Priority, Camp times, Max users, Range, Roles, Use points
- Paththrough: Navigation, RideMovers, UseSwitch
- Trigger regions, Pre-Scripted Regions
- Changing spawns
- Bots shooting map objects
- Scripting waypoints flags
- Talking bots
- Sniper and Panzer maps
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