What's new
Roleplay UK

Join the UK's biggest roleplay community on FiveM and experience endless new roleplay opportunities!

Roleplay UK

Wilco
Wilco
@Crumpets you don't.... the server is running a custom script to hide objects, if you find a way in a live Eden environment without clicking start scenario please let me know.

In speaking with the Arma devs in the past it was made clear that hiding objects is something they don't recommend and in turn have made it hard to do.

A
AnonMember1
@Wilco Is right, however if you run the script in the 3Den debug, it will remove the object while you are designing, however it is all command based and its not as easy as click and remove.

Scott1sh
Scott1sh
Quick way to do it.

place down a game logic object, place this code inside the init field and it will delete map objects within the radius you define (ie 50metres)

{ Deletecollection _x } forEach (( nearestObjects [ getPos this , [], 50 ]) - (( getPos this ) nearObjects 50 ));

Banci
Banci
@Scott1sh And if i want to bring the objects back would i just remove the game logic object? And if I copy that code directly into it will it work as long as i change the radius input?

Scott1sh
Scott1sh
You can either make the radius 0 or remove the game logic object.

Yep use the code in the init field of the game logic, define the radius and boom objects are gone.

There is a more precise way of doing it by getting map object ids and using game them to remove individual objects but it's slightly more complex

Banci
Banci
I've heard of glitches where you cant drive through the objects but you can walk through them. Is this what happens? 

Also can you please explain that slightly more complex way if you know how to do it

Scott1sh
Scott1sh
Open editor > tools > debug console

type in Execute field: do3DENAction "ToggleMapIDs";

press Local Exec to toggle IDs on/off

Now you will see on the map all "object ID's"

Place a game logic object and copy this code into the Init field

hideObject ([0,0,0] nearestObject 1121126);

Replacing the 1121126 with the object ID, you can place multiple of these in the game logic but would recommend doing separate game logics if you are removing large amounts of objects

Banci
Banci
kewl thanks

What about the driving into the removed objects

Scott1sh
Scott1sh
You should drive right through as if there were never there, give it a test.

Back
Top