Sign in to follow this  
Demon95

Deleting objects from the map

5 posts in this topic

On 24.01.2017 at 5:41 AM, Demon95 said:

Любой человек знает ли, как знать идентификатор объекта группы или удалить группу объектов по имени, например (footstep_l)

example:

Spoiler

this enableSimulation false;
this allowDamage false;
MasterPos = [10856.9,2772.64,0];
HideObjArray =
[
458610,493982,493981,458732,493983,493979,493978,493920,458754,458606,458605,458607,458604,493919,458750,458753,458740,
493886,493980,493977,1512627,1512626,458723,1512625,493885,458738,458712,458739,458575,458559,458708,458751,458752,458618,
458613,458617,458616,458614,458615
];
{((MasterPos) nearestObject _x) hideObject true;} forEach HideObjArray;

 

deleted airport terminal  :D

Spoiler

4-DANCIcuAY.jpgYXBi6ye07kU.jpgoV67udCmXKY.jpgg4muPYvuyxE.jpg

ID can be viewed in the 2D editor

20161017070048_1.jpg.fa9b81c13200dd00d1e

Edited by ispan55
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
2 minutes ago, Demon95 said:

id on't know how to remove the name of the object that would be a single command to delete all objects of the same type, for example trash cans

 

On 25.01.2017 at 4:24 AM, ispan55 said:

example:

  Reveal hidden contents


this enableSimulation false;
this allowDamage false;
MasterPos = [10856.9,2772.64,0];
HideObjArray =
[
458610,493982,493981,458732,493983,493979,493978,493920,458754,458606,458605,458607,458604,493919,458750,458753,458740,
493886,493980,493977,1512627,1512626,458723,1512625,493885,458738,458712,458739,458575,458559,458708,458751,458752,458618,
458613,458617,458616,458614,458615
];
{((MasterPos) nearestObject _x) hideObject true;} forEach HideObjArray;

 

deleted airport terminal  :D

4-DANCIcuAY.jpgYXBi6ye07kU.jpgoV67udCmXKY.jpgg4muPYvuyxE.jpg

ID can be viewed in the 2D editor

20161017070048_1.jpg.fa9b81c13200dd00d1e

id on't know how to remove the name of the object that would be a single command to delete all objects of the same type, for example trash cans

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.