Hello! I want to add a random that keeps my CuiserWingmen from overlapping the Cruiser itself.
I added this:
I am not sure if "|" works in this case as an "or". I just read somewhere that it is what construct uses for "or".
Any help much appreciated.
AllanR already solved this but another way you can do this if you want to be a little more DRY is
Set GotoX to Cruiser.x + (choose(-1, 1) * random(20,40))
As for expressions and the " | " operator I used to get really confused too. This is how they work
Set X to 2 = 1 ? 5 : -5
This can be translated to: Is 2 equal to 1? If yes, return 5. If no, return -5