Ich loese solche Dinge am liebsten auf folgende weise:
Code:
_x11 = 1517;
_x12 = 1217;
_y11 = 1572;
_y12 = 1272;
while {true} do
{
_list = ( (allMissionObjects "AllVehicles") + (allMissionObjects "Man") );
{
_posX = getpos _x select 0;
_posY = getpos _x select 1;
if ( (_posX < _x11 && _posX > _x12) && (_posY < _y11 && _posY > _y12) ) then
{
// write you code here
};
} forEach _list;
sleep 2;
};
vg
hoschi