Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Starside on March 27, 2021, 06:15:39 PM

Title: Way to compare multiple strings?
Post by: Starside on March 27, 2021, 06:15:39 PM
Hello everyone. Looking for a way to compare a bunch of one strings at one time.

For example I have a voice recognition plugin. I want to detect if the player says one of the 5 options and send an event based on that.
Title: Re: Way to compare multiple strings?
Post by: Weak Interactive on March 27, 2021, 07:21:57 PM
Hey,

I'm pretty sure you're looking for the "String Switch" action. It allows you to send an event by comparing however many strings you want.

Hopefully that's what you're looking for, have a good one.
Title: Re: Way to compare multiple strings?
Post by: Starside on March 28, 2021, 10:19:59 PM
Ah perfect! Didn't know that action existed! Thanks