Halvhjearne
Valued Member!
this took me a bit to figure out how to even find trees at all ...
but i figured it out in the end and now i have a working script to cut down an area of trees instantly ...
however, for some reason i cannot delete the stumps and the trees just fall randomly ... i have tried multiple things and i just cant seem to get rid of these stupid trees
also for some reason the server will not do this for me either and if you relog after cutting down a buch of trees, they will be stading again when you log back in.
i suspect this is coursed by the trees beeing drawn by the client, but ofc i could just exec this on each client instead
if anyone could help me figure out how to actually remove the trees?
... that would be awsome!
so far i tried:
deletevehicle _x; (obviusly)
_x setPos [0,0,0]; (thought id try moving them if they couldnt be deleted)
_x hideObject true; (tried hide, since they arent actually in the way it wouldnt matter if they was just invisible, but nope)
[nil, nil, rSPAWN, _x, { _this hideObject true; }] call RE; (diffrent variant of above)
[nil, _x, rHideObject, true] call RE; (yet another diffrent variant of above)
none of that works ...
edit: oops, forgot to add the script:
http://pastebin.com/Vattq2KL
but i figured it out in the end and now i have a working script to cut down an area of trees instantly ...
however, for some reason i cannot delete the stumps and the trees just fall randomly ... i have tried multiple things and i just cant seem to get rid of these stupid trees
also for some reason the server will not do this for me either and if you relog after cutting down a buch of trees, they will be stading again when you log back in.
i suspect this is coursed by the trees beeing drawn by the client, but ofc i could just exec this on each client instead
if anyone could help me figure out how to actually remove the trees?
... that would be awsome!
so far i tried:
deletevehicle _x; (obviusly)
_x setPos [0,0,0]; (thought id try moving them if they couldnt be deleted)
_x hideObject true; (tried hide, since they arent actually in the way it wouldnt matter if they was just invisible, but nope)
[nil, nil, rSPAWN, _x, { _this hideObject true; }] call RE; (diffrent variant of above)
[nil, _x, rHideObject, true] call RE; (yet another diffrent variant of above)
none of that works ...
edit: oops, forgot to add the script:
http://pastebin.com/Vattq2KL