You can use specify multiple actions by combining them using a bitwise OR operator This tells the game which actions you want to support. Public override UseActionEnum SecondaryAction => UseActionEnum.OpenTerminal This is the secondary action, such as pressing K to open the action assignment menu of a button. Public override UseActionEnum PrimaryAction => UseActionEnum.Manipulate This is the primary action, such as pushing a button. Save a reference to the parent block, so we can execute the action on the correct one later. IMyTerminalBlock m_dhd public DHDUseObject(IMyEntity owner, string dummyName, IMyModelDummy dummyData, uint key) Public class DHDUseObject : MyUseObjectBase This must match the second element of the empty/dummy name, but is not case sensitive.
![mod api the forest path mod api the forest path](https://www.risevision.com/hubfs/tips-and-tricks.png)
Initialize the UseObject, using the type of "DHD" Once the model is set up, the actual interaction implementation is done via a C# script. Two parts are required to be named specifically: the marker and the sequence number.įor the purposes of this guide, the marker is detector, and seq no is an integer starting from 1.
![mod api the forest path mod api the forest path](https://i.ytimg.com/vi/iIvDtwMgPG0/mqdefault.jpg)
The name of an interaction dummy is broken down into 3 or more parts: Marker, type, subtype, sequence number (seq no) in this format: marker_type_subtype_sequencenumber.
#Mod api the forest path how to
Model Preparation – Space Engineers How to Mod UseObjects This guide will show you how to create your own interaction dummies, which you can use to trigger any behavior you want that is possible with the ModAPI. These are empties (dummies) named something like detector_terminal_1. If you’ve ever made a block mod before, you’ve probably made an interaction point. A UseObject is an interactive point on a block, such as a terminal access or button on a button panel. Since SE version 1.199, Keen added to the Modding API the ability to create custom UseObjects. How to Mod UseObjects (Custom Block Interactions)
![mod api the forest path mod api the forest path](https://i.imgur.com/9gHzgWd.png)
We’ll keep you upgraded with extra information once they are released. This guide explains how to use the custom UseObjects added to the modding API in SE 1.199. Welcome to our Space Engineers How to Mod UseObjects Guide.