mirror of
https://github.com/Ignatz-HeMan/Ignatz_Tools.git
synced 2024-08-30 16:12:11 +00:00
Tweaked RemoveTrees Script
This commit is contained in:
parent
def01a15e6
commit
9bf1807b18
@ -1,12 +1,10 @@
|
|||||||
_pos = getpos player;
|
_pos = getpos player;
|
||||||
_alltrees = nearestobjects [_pos,[],25];
|
_nearobjs = nearestobjects [_pos,[],25];
|
||||||
{
|
{
|
||||||
_pinus = ['pinus',str _x] call BIS_fnc_inString;
|
_obj = _x;
|
||||||
_ficus = ['ficus',str _x] call BIS_fnc_inString;
|
{
|
||||||
_wreck = ['wreck',str _x] call BIS_fnc_inString;
|
if (tolower (str _obj) find _x > -1) exitwith {
|
||||||
_stone = ['stone',str _x] call BIS_fnc_inString;
|
_obj hideObjectGlobal true;
|
||||||
if (_pinus || _ficus || _wreck || _stone) then {
|
};
|
||||||
_x hideObjectGlobal true;
|
} foreach ["pinus","ficus","wreck","stone"];
|
||||||
};
|
} foreach _nearobjs;
|
||||||
|
|
||||||
} foreach _alltrees;
|
|
Loading…
Reference in New Issue
Block a user