Lua ConstCOB

From Spring

Development < Lua Scripting < Lua ConstCOB

Note: At this time, this list is roughly equivalent to the supported COB instructions at spring / rts / Sim / Units / Scripts / CobDefines.h, but you don't need to use the proper constant values (see Git repo).

Explode

SFX.SHATTER
SFX.EXPLODE
SFX.EXPLODE_ON_HIT
SFX.FALL
SFX.SMOKE
SFX.FIRE
SFX.NONE
SFX.NO_CEG_TRAIL
SFX.NO_HEATCLOUD
SFX.RECURSIVE New in version 99.0

EmitSfx

SFX.VTOL
SFX.WAKE
SFX.REVERSE_WAKE
SFX.WHITE_SMOKE
SFX.BLACK_SMOKE
SFX.BUBBLE
SFX.CEG
SFX.FIRE_WEAPON
SFX.DETONATE_WEAPON

Get/Set

COB.ACTIVATION
COB.STANDINGMOVEORDERS
COB.STANDINGFIREORDERS
COB.HEALTH
COB.INBUILDSTANCE
COB.BUSY
COB.PIECE_XZ
COB.PIECE_Y
COB.UNIT_XZ
COB.UNIT_Y
COB.UNIT_HEIGHT
COB.XZ_ATAN
COB.XZ_HYPOT
COB.ATAN
COB.HYPOT
COB.GROUND_HEIGHT
COB.BUILD_PERCENT_LEFT
COB.YARD_OPEN
COB.BUGGER_OFF
COB.ARMORED
COB.IN_WATER
COB.CURRENT_SPEED
COB.VETERAN_LEVEL
COB.ON_ROAD
COB.MAX_ID
COB.MY_ID
COB.UNIT_TEAM
COB.UNIT_BUILD_PERCENT_LEFT
COB.UNIT_ALLIED
COB.MAX_SPEED
COB.CLOAKED
COB.WANT_CLOAK
COB.GROUND_WATER_HEIGHT
COB.UPRIGHT
COB.POW
COB.PRINT
COB.HEADING
COB.TARGET_ID
COB.LAST_ATTACKER_ID
COB.LOS_RADIUS
COB.AIR_LOS_RADIUS
COB.RADAR_RADIUS
COB.JAMMER_RADIUS
COB.SONAR_RADIUS
COB.SONAR_JAM_RADIUS
COB.SEISMIC_RADIUS
COB.DO_SEISMIC_PING
COB.CURRENT_FUEL
COB.TRANSPORT_ID
COB.SHIELD_POWER
COB.STEALTH
COB.CRASHING
COB.CHANGE_TARGET
COB.CEG_DAMAGE
COB.COB_ID
COB.PLAY_SOUND
COB.KILL_UNIT
COB.ALPHA_THRESHOLD
COB.SET_WEAPON_UNIT_TARGET
COB.SET_WEAPON_GROUND_TARGET
COB.SONAR_STEALTH
COB.REVERSING
COB.FLANK_B_MODE
COB.FLANK_B_DIR
COB.FLANK_B_MOBILITY_ADD
COB.FLANK_B_MAX_DAMAGE
COB.FLANK_B_MIN_DAMAGE
COB.WEAPON_RELOADSTATE
COB.WEAPON_RELOADTIME
COB.WEAPON_ACCURACY
COB.WEAPON_SPRAY
COB.WEAPON_RANGE
COB.WEAPON_PROJECTILE_SPEED
COB.MIN
COB.MAX
COB.ABS
COB.GAME_FRAME