Hi again!
I was wondering if there's a way to send a message using the MessageSystem, directly within Dialog? I'd like to send a message if a particular dialogue node is reached during a conversation, as I have a listener Component waiting for such a message to enable and spawn various collectable prefabs.
Many thanks again for your help!
MessageSystem "Send Message" LUA function in Dialogue?
Re: MessageSystem "Send Message" LUA function in Dialogue?
Hi,
Add a CommonLibraryLua component to your Dialogue Manager. This will make these Lua functions available:
Add a CommonLibraryLua component to your Dialogue Manager. This will make these Lua functions available:
- SendMessageSystem("message", "parameter");
- SendMessageSystemString("message", "parameter", "value");
- SendMessageSystemInt("message", "parameter", (int)value);
Re: MessageSystem "Send Message" LUA function in Dialogue?
Perfect, thank you again!
Re: MessageSystem "Send Message" LUA function in Dialogue?
Happy to help!