Hello!
Have a problem with a string value in a Conditional Expression - it stays False no matter what.
Character in my game moves around a grid-based location. When user chooses a direction to move I do the following:
State 1 - get the name of the tile the user wants to move to
- Raycast to the chosen direction to check what tile lies ahead (ground, stair, wall, trap, etc.) - different tiles require different reaction from the character
- Save tile as tileDestination using Store Hit Object in Raycast action
- Use Get Name action to extract tile name from tileDestination variable and save it as a string in tileDestinationName
State 2 - check if tile name is "Ground"
- Use Conditional Expression to compare string value: tileDestinationName == "Ground"
And this is the moment I can't get through. This Conditional Expression returns False, even when tileDestinationName variable is Ground.
Am I using Conditional Expression wrong?