2020-08-10 00:36:38 +00:00
|
|
|
|
2020-08-15 11:04:14 +00:00
|
|
|
|
2020-09-07 14:13:24 +00:00
|
|
|
private _objects = get3DENSelected "object" select {(typeOf _x) isKindOf "Car" || (typeOf _x) isKindOf "Ship"}; //
|
|
|
|
if (count _objects == 1) then
|
|
|
|
{
|
|
|
|
private _obj = _objects select 0;
|
|
|
|
private _marker = create3DENEntity ["object","Sign_Arrow_Blue_F",getPos _obj];
|
|
|
|
private _bbr = boundingBoxReal vehicle player;
|
|
|
|
_p1 = _bbr select 0;
|
|
|
|
_p2 = _bbr select 1;
|
|
|
|
_height = abs ((_p2 select 2) - (_p1 select 2));
|
|
|
|
_markerPos = getPos _marker;
|
|
|
|
_marker setPosATL [_markerPos select 0, _markerPos select 1, (_markerPos select 2) + _height];
|
|
|
|
} else {
|
|
|
|
systemChat "no vehicles selected";
|
|
|
|
};
|