Dynamic Environment Info

Transmit real-time environmental data to characters without requiring a response. Supported from Plugin Version 3.5.1.

Overview

Dynamic Environment Info is a powerful feature that allows users to pass additional environmental data to characters without direct interaction. This enables more immersive and creative gameplay scenarios by enhancing how characters perceive their surroundings.

For example:

  • The character can understand the time of day (e.g., "time of day is night").

  • The character can access inventory details (e.g., "You currently have a gun and a healing potion").

  • The feature supports structured data formats for richer information exchange.


Follow the steps below to integrate Dynamic Environment Info into your project.

  1. Open the Character Blueprint in your project.

  2. In the Begin Play event, locate the ConvaiChatbot component.

  1. Set the Dynamic Environment Info variable with a string value of your choice.

  • Example 1 (Simple):

    time of day is night
  • Example 2 (Structured Format):

    inventory: {weapon: gun, tools: [flashlight, rope]}

Save and Play

  1. Save your blueprint changes.

  2. Hit Play to test the interaction.

  3. Observe how the character dynamically responds based on the information passed.


By following these simple steps, you can unlock more engaging gameplay mechanics and enrich the interactions.

Last updated

Was this helpful?