Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example: https://i.snipboard.io/RCEtDK.jpg
- script: https://pastebin.com/raw/ZpbxnCxU
- save this as "TwitchChat.cs"
- Go into Tools > Bolt > Unit Options Wizzard ...
- Skip to "Type Options"
- Add "Twitch.MSGInfo" onto it.
- ---
- Inside your Flow Graph, create a Custom Event
- Call it something. in the example there its called "TwitchChatInbox" (default)
- Let it have 1 argument.
- ---
- Put the TwitchChat script on any GameObject.
- Inside the Inspector for the Component open "Configuration" and "Bolt"
- Type in the name of the custom event into "Bolt Trigger Name". Here "TwitchChatInbox" (default)
- If the Flow Layout is not on the same GameObject, drag the GameObject with the Flow Layout onto "Bolt Trigger Target".
- ---
- Done. Now you can expose the given Argument of the Custom Event inside Flow Graph with the Expose Twitch.MSGInfo and get everytime, when a message comes in, a triggered event, where you can work with.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement