8,290
edits
(Add the rest of the code infrastructure to make a keybind work.) |
No edit summary |
||
Line 8: | Line 8: | ||
When the player presses that key, the mod's custom command is received as an event on the player character. This means that at least a small amount of C# scripting is required to take advantage of the key mapping infrastructure. | When the player presses that key, the mod's custom command is received as an event on the player character. This means that at least a small amount of C# scripting is required to take advantage of the key mapping infrastructure. | ||
__TOC__ | |||
== Define Key Mapping Options == | == Define Key Mapping Options == | ||
Line 29: | Line 31: | ||
Create a part to listen for your Key Mapping command on the player. | Create a part to listen for your Key Mapping command on the player. | ||
< | <syntaxhighlight lang="csharp"> | ||
using System; | using System; | ||