dlang 24 Posted February 8, 2016 Hello, Is there a way to delete native bush on the map ? Tried some things whitout succes ... Share this post Link to post Share on other sites
Guest Posted February 8, 2016 You should take a look at the nearestTerrainObjects command. Share this post Link to post Share on other sites
dlang 24 Posted February 8, 2016 Thanks, and then ? I place a trigger, with nearestTerrainObjects [this trigger, ["Tree","Bush"], 200]; But I don't know what to put in activation to delete the bush ? Share this post Link to post Share on other sites
killzone_kid 1331 Posted February 8, 2016 hideObjectGlobal Share this post Link to post Share on other sites
dlang 24 Posted February 8, 2016 But what hideObjectGlobal also prevents colliding with the bush? (Support Physx?) Does anyone have the exact syntax to put in a trigger near the bush? :) Share this post Link to post Share on other sites
killzone_kid 1331 Posted February 8, 2016 point to the bush and executecursorObject hideObjectGlobal true; 1 Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted February 9, 2016 But what hideObjectGlobal also prevents colliding with the bush? (Support Physx?) It does prevent collision. Share this post Link to post Share on other sites
MrCopyright 107 Posted February 9, 2016 point to the bush and execute cursorObject hideObjectGlobal true; cursorObject is only on the development build Share this post Link to post Share on other sites
killzone_kid 1331 Posted February 9, 2016 cursorObject is only on the development build Hopefully not for long ;) Share this post Link to post Share on other sites
dlang 24 Posted February 10, 2016 Ok, i'm ion 1.56RC; I have some problems with local/global variables. Can someone help me to find the correct activation line to put in a trigger to have nearest terrain objects (some bushs) deleted on mission start ? Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted February 10, 2016 Ok, i'm ion 1.56RC; I have some problems with local/global variables. Can someone help me to find the correct activation line to put in a trigger to have nearest terrain objects (some bushs) deleted on mission start ? Why do you need a trigger for that? Share this post Link to post Share on other sites
dlang 24 Posted February 10, 2016 I don't know. :D In fact I try to remove the bushes around some objects I placed (to put a building instead ) automatically , and at the beginning of the mission. Share this post Link to post Share on other sites
dlang 24 Posted February 11, 2016 _x = nearestTerrainObjects [this, ["House"], 20] ;{ _i hideObjectGlobal; } count _x; Here is what a tried to put in a Game Logic near my bush. This obviously does not work, someone would have the proper syntax ? Edit: Sorry for the double post , it was not voluntary Share this post Link to post Share on other sites
Greenfist 1863 Posted February 11, 2016 { hideObjectGlobal _x } foreach (nearestTerrainObjects [this, ["Bush"], 20]) Share this post Link to post Share on other sites
Guest Posted February 11, 2016 Try to understand commands instead of copy/pasting. Obviously you are not looking for Houses. Greenfist gave you the answer. Btw dude are you the hulk fist or what ? Share this post Link to post Share on other sites
Greenfist 1863 Posted February 11, 2016 Try to understand commands instead of copy/pasting. Obviously you are not looking for Houses. Greenfist gave you the answer. Btw dude are you the hulk fist or what ? I agree. And no, it's just a name I picked at random about 15 years ago for some online game or something. I was in the army at the time and we had these green leather shooting gloves which sometimes dyed your hands when they got really wet, so.... :) Share this post Link to post Share on other sites