Advertisement
NeoGriever

Untitled

Dec 20th, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. example: https://i.snipboard.io/RCEtDK.jpg
  2.  
  3. script: https://pastebin.com/raw/ZpbxnCxU
  4.  
  5. save this as "TwitchChat.cs"
  6.  
  7. Go into Tools > Bolt > Unit Options Wizzard ...
  8.  
  9. Skip to "Type Options"
  10.  
  11. Add "Twitch.MSGInfo" onto it.
  12.  
  13. ---
  14.  
  15. Inside your Flow Graph, create a Custom Event
  16.  
  17. Call it something. in the example there its called "TwitchChatInbox" (default)
  18.  
  19. Let it have 1 argument.
  20.  
  21. ---
  22.  
  23. Put the TwitchChat script on any GameObject.
  24.  
  25. Inside the Inspector for the Component open "Configuration" and "Bolt"
  26.  
  27. Type in the name of the custom event into "Bolt Trigger Name". Here "TwitchChatInbox" (default)
  28.  
  29. If the Flow Layout is not on the same GameObject, drag the GameObject with the Flow Layout onto "Bolt Trigger Target".
  30.  
  31. ---
  32.  
  33. 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