mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
3ac749d64b
This is the latest stable version of Sarge AI for Arma 3: Exile.
16 lines
298 B
Plaintext
16 lines
298 B
Plaintext
// In: [array1,array2]
|
|
// Out: boolean
|
|
|
|
private ["_p1","_p2","_return"];
|
|
_p1 = _this select 0;
|
|
_p2 = _this select 1;
|
|
_return = true;
|
|
|
|
// Only compare X and Y coordinates, ignore Z.
|
|
for "_i" from 0 to 1 do {
|
|
if ((_p1 select _i) != (_p2 select _i)) exitwith {
|
|
_return = false;
|
|
};
|
|
};
|
|
|
|
_return |