Yes, it's ok. Me personaly would maybe just import a finished system because it will shrink your code.
I would import this:
http://www.hiveworkshop.com/forums/jass-resources-412/snippet-isdestructabletree-248054/
I guess you know how to import a jass code? If not:
[stable]
1.[c] Create new GUI trigger.[r]
2.[c] Convert the trigger into custom text.[r]
3.[c] Delete everything in it.[r]
4.[c] Copy & Paste the vJASS code into it --> done.[/stable]
If you have done so you just can use it for killing trees like this:
[stable]Destructible - Pick every destructible within 256.00 of Point and do (Actions)
Schleifen - Aktionen
Custom script: call KillTree(GetEnumDestructable())
[/stable]
So you would need a custom script to call the function of the imported library, but it checks automatically if it's a tree or not.
And there are more systems out there, but it's not really important which you use it they make your life easier and worsk properly. :csmile:
<span style="font-size: 18px">Edit: </span>
Hi! btw :D