Jump to content
Devastator_cm

Items on tables

Recommended Posts

 Hi Guys,

EDEN not supposed to bring the possibility to put items easily on top of others, i.e. tables, shelves etc?
Each and every time the objects are falling down or getting half sank into the surface..

How do you handle this? I am tired to find the coordinations manually by setpos by try and error...

Share this post


Link to post
Share on other sites

The simplest way I can think of is to disable the simulation for the objects on the table and possibly for the table itself if required. However, the downside of this is the objects will no longer react to the environment, so if for example the table is inside a building and the building is destroyed during combat, the objects will float in mid air. There are ways around that though as well, but require a little scripting and extra effort.

Share this post


Link to post
Share on other sites

You can use this snippet and put it into the object on the table:

this attachTo [table, table worldToModel (getPosATL this)];

Just replace "table" with the referencename of your table.

Share this post


Link to post
Share on other sites

Or:

[this, yourTable] call BIS_fnc_attachToRelative

if you want to keep the object's orientation.

Share this post


Link to post
Share on other sites

Seems to be pretty much the same thing.

 

I'm not good at remembering all those BIS functions. :rolleyes:

Share this post


Link to post
Share on other sites

Seems to be pretty much the same thing.

 

I'm not good at remembering all those BIS functions. :rolleyes:

But doesn't attaching reset the objects direction to match the table? I can't remember.

Share this post


Link to post
Share on other sites

Disable Simulation does not work for objects with variable names. Keep that in mind.

Share this post


Link to post
Share on other sites

Isn't this pretty pathetic that we have this 3D editor but still all kinds of scripted shenanigans are needed to have objects on surfaces.. :face_palm:

  • Like 1

Share this post


Link to post
Share on other sites

Well, doesn't have much to do with Eden but rather the clunky engine physix. However, I believe the devs are working on an integration of the attachTo command, so hopefully in the future, things like that can be done without scripting.

Share this post


Link to post
Share on other sites

Is there a way to un attach the objects? :/
I used BIS_fnc_attachToRelative to put some boxes on truck but now I am not able to move them on flor with setpos command where player can cary them as they want

Share this post


Link to post
Share on other sites

I reply a bit late but I mean actually detach for 

[this, yourTable] call BIS_fnc_attachToRelative 

(this one worked perfectly for my case)

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

×