mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
14 lines
254 B
Plaintext
14 lines
254 B
Plaintext
#include "script_component.hpp"
|
|
|
|
private "_nearestFence";
|
|
PARAMS_1(_unit);
|
|
|
|
_nearestFence = objNull;
|
|
{
|
|
if ((isNull _nearestFence) && {[_x] call FUNC(isFence)}) then {
|
|
_nearestFence = _x;
|
|
};
|
|
} forEach nearestObjects [_unit, [], 5];
|
|
|
|
_nearestFence
|