Interaction DataObject Class
Last updated
Last updated
What is it?
This is a utility class that serves as an interaction handler for interactive objects. An instance of this class is created at runtime for each CISInteractionObject component.
You can override several virtual methods within it to customize the game's behavior at various moments of interaction with the object.
Included with the plugin is one preconfigured object - BP_CISDataObjectExample. It toggles the display of a widget above the interactive object and disables player input during interaction.
You can configure this class in two ways. The first method is in the settings of the CISCharacterInteraction component.
The second method is in the settings for each CISInteractionObject component if you need to create specific behavior for individual interactive objects.
To create a new object of this class, simply create a blueprint that inherits from CISInteractionDataObject.
Now let's consider a specific case. For example, during the start of using an object and until it's finished, you want to disable player input.
To achieve this, override the methods for the beginning and end of interaction with the object and implement the necessary logic.
List of all available methods for overriding: