Skip to content

Posts from Lua script

No ratings yet — be the first to rate!
7 years ago
Auto-translated
Hello everyone, maybe someone knows and can help. How do I write a LUA script so that pressing a key triggers a specific Lua function in the game?
User Avatar
7 years ago
Auto-translated
l_loco7
Hello everyone, maybe someone knows and can help. How do I write a LUA script so that pressing a key triggers a specific Lua function in the game?
The game doesn't allow processing arbitrary key presses using a script. Event handlers usually work with in-game events and objects.

If you need to explicitly call a function during the game, for example, for testing, you can enter it in the console in the form
@FunctionName(parameters)

Statistics

Welcome our newest member: recijeb