Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Nescius' button binder base
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
3.219 KB
1 May, 2024 @ 7:20am
1 May, 2024 @ 10:05am
2 Change Notes ( view )

Subscribe to download
Nescius' button binder base

Description
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

Popular Discussions View All (1)
3
5 Dec, 2024 @ 8:58am
Assistance or Example?
Doc903