Left 4 Dead 2

Left 4 Dead 2

评价数不足
Nescius' button binder base
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts, Miscellaneous
文件大小
发表于
更新日期
3.219 KB
2024 年 5 月 1 日 上午 7:20
2024 年 5 月 1 日 上午 10:05
2 项改动说明 ( 查看 )

订阅以下载
Nescius' button binder base

描述
If you are not vscripter reading this description won't tell you much. You need to subscribe to this only if some addon tells you to do so.
This script is meant to be marked as required item in mods that want to easily bind a button to some action. This mod does NOT force scriptedmode

Usage:

in response_testbed_addon.nut or later define your function and register it like this
function myfunction(player) { printl(player + " called the function); } NesciusButtonBinder.RegisterCommand("somecommand", myfunction)

When that's done anyone connected to the server can call the registered function with following bind
bind g "setinfo nescmd somecommand; taunt; nescmd 0"

myfunction will be called with handle of the player as the first parameter

Use discussion section for related questions

热门讨论 查看全部(1)
3
2024 年 12 月 5 日 上午 8:58
Assistance or Example?
Doc903