I was making a small program and got to a point where I have to compare two InfinityScript.Vector values. I can't figure out how to do this properly. I tried using the == operator, that failed with
Operator '==' cannot be applied to operands of type 'InfinityScript.Vector3' and 'InfinityScript.Vector3'
My last attempt is most definitely wrong:
Vector3 flag1 = new Vector3(33, 66, -255);
Vector3 ori = player.Origin;
if (ori = flag1) {
//do something
}
Which produces:
Cannot implicitly convert type 'InfinityScript.Vector3' to 'bool'
What is the right way to do this?