Lua Hook
always
assist
attack
attack2
bombdefuse
bombexplode
bombplant
break
build
buildattempt
buy
clientdata
collect
die
dominate
drop
endround
flagcapture
flagtake
flashlight
hit
hitzone
hostagerescue
httpdata
join
key
kill
leave
log
mapchange
menu
minute
move
movetile
ms100
name
objectdamage
objectkill
objectupgrade
parse
projectile
radio
rcon
reload
say
sayteam
second
select
serveraction
shieldhit
shutdown
spawn
specswitch
spray
startround
startround_prespawn
suicide
team
trigger
triggerentity
turretscan
use
usebutton
vipescape
vote
walkover
Lua 命令
addbind
addhook
ai_aim
ai_attack
ai_build
ai_buy
ai_debug
ai_drop
ai_findtarget
ai_freeline
ai_goto
ai_iattack
ai_move
ai_radio
ai_reload
ai_respawn
ai_rotate
ai_say
ai_sayteam
ai_selectweapon
ai_spray
ai_use
checksumfile
checksumstring
closehostage
closeitems
closeobjects
entity
entitylist
freehook
freeimage
freetimer
funcs
game
hostage
image
imagealpha
imageblend
imagecolor
imageframe
imagehitzone
imagepos
imagescale
inentityzone
item
itemtype
map
menu
msg
msg2
object
objectat
objecttype
parse
player
playerammo
playerweapons
print
projectile
projectilelist
randomentity
randomhostage
reqcld
reqhttp
setentityaistate
sethookstate
stats
steamstats
tile
timer
tween_alpha
tween_animate
tween_color
tween_frame
tween_move
tween_rotate
tween_rotateconstantly
tween_scale
vars

map

分类

地图

参数

    value : 值

说明

返回有关当前地图的信息:

名称:地图名称
xsize:地图图块的x大小
ysize:地图图块的y大小
tileet:地图中使用的tileet文件
tileize:tileset中每个图块的大小(以像素为单位)。可以是32或64。
tilecount:tileset中的tile数
back_img:地图的背景图片(如果没有则为空)
back_scrollx:背景x滚动速度
back_scrolly:背景y滚动速度
back_scrolltile:像瓷砖一样滚动背景吗?0/1
back_r:背景色红色值
back_g:背景色绿色值
back_b:背景色蓝色值
storm_x:风暴x速度
storm_y:风暴y速度
mission_vips:VIP产生的数量
mission_hostages:人质数量
mission_bombspots:炸弹点数
mission_ctfflags:CTF标志的数量
mission_dompoints:控制点数
nobuying:可以购买吗?0/1
noweapons:允许使用武器吗?0/1
teleporters:有传送器吗?0/1
botnodes:bot节点数

修改词条 删除词条