Jump to content
Sign in to follow this  

Recommended Posts

I placed a location logic from the Game Logic menu with the following in the init slot:

things = nearestObjects [logic1,[],50]; {_x setdamage 1;} forEach things;

I have read many confusing threads on this none of the suggested methods work.

Does anyone know how to knock over trees?

Share this post


Link to post
Share on other sites

The above works fine here, did you name the Game Logic logic1?

Share this post


Link to post
Share on other sites

Derp! That was it thanks.

Also is it possible to hide a tree?

Edited by SteelSampson

Share this post


Link to post
Share on other sites

hideObject _x by itself wont work, I ment using it with the forEach command, like that:

{_x hideObject true} forEach things;

Share this post


Link to post
Share on other sites

I'm using this in game logic location "logic1":

things = nearestObjects [logic1,[],30]; {_x hideObject true} forEach things; {_x setdamage 1;} forEach things;

The tree is being felled, but it is still visible.

Share this post


Link to post
Share on other sites

Hideobject won't work with trees. It will work on buildings and editor placed objects.

Deletecollection did work in the past but if it was used incorrectly caused the game to crash, it was modified and no longer works as before in OA but I'm not sure about A2.

Share this post


Link to post
Share on other sites

Is there a way to use nearestObject , to just select the trees ? because that command will kill everu unit inside the radius.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×