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

addbind

分类

玩家

参数

    key : 入下所示

说明

为一个指定按键添加一个Lua按键绑定。 这个绑定会在一个玩家按下/松开时为所有玩家触发。
合法的按键名:
数字键: "0", "1" ... "9"
字母表键: "A", "B", ... "Z"
函数键: "F1", "F2", ... "F12"
鼠标: "mouse1" (左键点击), "mouse2" (右键点击), "mouse3" (中键点击), "mwheelup", "mwheeldown" (滚轮卷动)
特殊/自定义键: "leftshift", "rightshift", "leftctrl", "rightctrl", "leftalt", "rightalt", "leftsys", "rightsys"
箭头键: "leftarrow", "rightarrow", "uparrow", "downarrow"
其他: "backspace", "tab", "clear", "enter", "escape", "space", "pgup", "pgdn", "end", "home",
"select", "print", "execute", "screen", "ins", "del"
数字小键盘: 和上边一样但多出"kp_"前缀. 例子:"kp_leftarrow", "kp_home", "kp_ins"等., "kp_5" 为中间按键
请阅读按键hook以获得更多信息

修改词条 删除词条