![]() In your main mod public void Awake() method you just need to add this little snippet which tells R2API to scan your mod for console commands: This is right next to your BepInEx attribute. Logically, it would make more sense to put this at the end of the tutorial after writing the commands but this is just a small bit that we can cover very quickly but it is also important not to miss.īefore you start your plugin's class, add. How to use Commandhelper for your commands One thing that will make your life much easier is R2API's CommandHelper and it basically does all the command registering for you. CommandHelperĪlso consider reading R2API's page about this. Give_item behemoth 10 0 will give 10 of brilliant behemoth to player at index 0 (this is usually the host). if we have a command called give_item which takes 3 arguments in order args=partial itemname, args=count, args=playerIndex (this is a real example from DebugToolkit, simplified for sake of tutorial) If a command requires arguments you can add them after the command separated by a space. You can start typing then use the up/down arrow keys to select the command you want from the list. The console has intellisense so as you start typing a command the console will make suggestions as to which command you want to type. ![]() To enter a command first you must open the console, then type in the text box at the bottom of the window. Notably mods like DebugToolkit are almost entirely console commands. Shortcut (please add shortcuts for your region if necessary): In the case of a US/UK keyboard that is the grave key. Generally the combination is Ctrl + Alt plus the button that is underneath the Esc key. The key combination to open the console is different depending on your keyboard layout. In this tutorial we will learn how to write our own commands. The console is a hidden in-game window in which you can view game logs and you can type developer commands. Running modded and unmodded game with shortcuts Upgrading your project to use R2API's Split Assemblies Working Shaders outside of an AssetRipper projectĬreating skin for vanilla characters with custom model Welcome to the Risk of Rain 2 Modding Wiki !
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |