Jump to content
davidoss

Delete an Existing Building Furniture

Recommended Posts

Hi. Wanna ask if there can be removed or hided some of buldings furniture like:

NOID washing_machine.p3d
NOID kitchenstove_elec.p3d
NOID fridge.p3d
NOID tv_a.p3d

by script.

Share this post


Link to post
Share on other sites

Is this regarding spawned furniture? If you're referencing furniture that is already modeled into the building, it cannot be done with a script (Unless they are listed as hidden selections or animations that can be animated/hidden out, which to my knowledge no houses have that).

 

If you're talking about hiding general terrainObjects, the kind that are listed as "HIDDEN", then you can make use of the BIS_fnc_inString command to find the objects with the proper classname, as a hint on how to get started with it.

  • Like 1

Share this post


Link to post
Share on other sites

Thank you. Unfortunately its about stuff modeled into the building. It just not fit scenario date.

Share this post


Link to post
Share on other sites

if there exists a version of the same house without the furniture, you could replace the whole building. but i'm guessing it's a proxy on an arma 2 map, right?

  • Like 1

Share this post


Link to post
Share on other sites

Its about this beautiful version of old chernarus map - Chernarus_2035.

it's breathtaking i am all love in.

How to find all buildings with given furniture

NOID washing_machine.p3d
NOID kitchenstove_elec.p3d
NOID fridge.p3d
NOID tv_a.p3d 
NOID pc.p3d

and replace with any enterable house without it.

Share this post


Link to post
Share on other sites

Maybe some kind of nearest objects command to get the furniture and then hideObjectGlobal to hide them

Share this post


Link to post
Share on other sites

I used this:

{ 
 if ( 
 (toLower(str _x) find "wreck") >= 0 || 
 {(toLower(str _x) find "garbagepallet") >= 0} || 
 {(toLower(str _x) find "datsun01t") >= 0} || 
 {(toLower(str _x) find "garbagewashingmachine_f") >= 0} || 
 {(toLower(str _x) find "hiluxt") >= 0} ||
 {(toLower(str _x) find "datsun02t") >= 0}
 ) then { 
  hideObject _x; 
 }; 
} foreach (nearestTerrainObjects [[10240,10240,0], ["HIDE"], 10500]);

to hide wrecks but for furmiture objects is not working, i think because there are no ID thing or other than "HIDE" type.

  • Like 1

Share this post


Link to post
Share on other sites

@davidoss try nearestObjects, it returns .p3d objects...

 

nearestObjects [player, [], 10]

 

Share this post


Link to post
Share on other sites

Nope  nearestObjects [player, [], 10] is not detecting that stuff.

Share this post


Link to post
Share on other sites

As benson mentioned, the furniture in the Chernarus buildings are part of the building model itself so they can't be removed by commands.

  • Like 2

Share this post


Link to post
Share on other sites
2 hours ago, EO said:

Chernarus buildings

 

Maybe by replacing the certain buildings with others?!

Share this post


Link to post
Share on other sites

Thanks. Thats was already mentioned by bad benson, but i have no idea how to detect buildings with these furniture.

I can search building clasnames for replace but manually find all buildings on the map with these stuff inside looks like too much for me.

 

Share this post


Link to post
Share on other sites
On 4/9/2018 at 6:30 PM, davidoss said:

I can search building clasnames for replace but manually find all buildings on the map with these stuff inside looks like too much for me.

 

If this might help.

 

Share this post


Link to post
Share on other sites
On 11/23/2019 at 5:36 PM, killzone_kid said:

Because they have no id as they are probably temporary objects

 

I can assume they are simple objects?

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

×