Hello, I have this if/then I am using for a movement system and it's supposed to check the current position of the unit versus the target position and return true/false based on my requirements. Here is the first if/then and it is proceeding to the 'then' actions (return false) even if the current position is not 5 or 15. It seems my use of And/Or in this instance is not correct. Any help is much appreciated.
I am expecting it to return false ONLY if the current region is 5 or 15 AND targeting one of the other four regions. The current region is where the unit is when the trigger runs and the target region is where the mouse click is.
Hello, I have this if/then I am using for a movement system and it's supposed to check the current position of the unit versus the target position and return true/false based on my requirements. Here is the first if/then and it is proceeding to the 'then' actions (return false) even if the current position is not 5 or 15. It seems my use of And/Or in this instance is not correct. Any help is much appreciated.
So, you are not in any of this regions it shouldn't return false or what are you expecting?
Your code atm expresses:
If you are in any of this regions (5,15,45,55,85,95), it should return false.
I am expecting it to return false ONLY if the current region is 5 or 15 AND targeting one of the other four regions. The current region is where the unit is when the trigger runs and the target region is where the mouse click is.
Then you would want something like this:
(Brackets to clarify)
Ok. I will give it a try in a little bit. Left the room to spend time with my daughter. She got tired of sitting in one place at the computer lol.
Teach her to do the map for you :)
Better yet, teach her to do my map for me.