where to chop wood

Default behaviour for dayz checks if the ground = defined as forest area.

Try mission fix the chopwood.sqf..

http://opendayz.net/index.php?threads/chopping-wood-fix-v0-1.7757/

Its a chopwood.sqf i made up for Sahrani map... find some empty space & try to chop some wood...
Then check a clients rpt logs...
It will list all the objects within 30 metres...

Do some creative searching & figure out which models are trees...

Then u just alter = trees & change the chopwood.sqfs as needed
U are basicly doing a text match on the model names.

For example in taviana i believe all trees models began with " _t"
While in sahrani it was either " str_" or " str "


---------------------------

All credit goes to hicks, since i grabbed the fix from tavi .com map
 
so im trying to get the chopwood.sqf working with my map. I use winter trees and they all begin with either a W or w.
I edited the chopwood.sqf to the code you put up but cant seem to figure out why its not working.

Code:
private["_location","_isOk","_dir","_classname"];
private["_item"];
_item = _this;
call gear_ui_init;
 
private "_nearByTrees";
 
_nearByTrees = 0;
 
{
    if ([" t_",  _W,  _w, str _x, false] call fnc_inString) then
    {
        _nearByTrees = _nearByTrees + 1;
    };
} forEach nearestObjects [getPos player, [], 30];
 
if (_nearByTrees >= 3) then {
    _result = [player,"PartWoodPile"] call BIS_fnc_invAdd;
    if (_result) then {
        cutText [localize "str_player_25", "PLAIN DOWN"];
    } else {
        cutText [localize "str_player_24", "PLAIN DOWN"];
    };
} else {
    cutText [localize "str_player_23", "PLAIN DOWN"];
};
 
Back
Top