506th IR Realism Unit

Recruiting => The Duty Desk => Topic started by: K. Santos on November 02, 2015, 12:12:03 PM

Title: Fighting Gravity
Post by: K. Santos on November 02, 2015, 12:12:03 PM
Ok, so, I keep seeing these lovely pictures on armaholic showing furnished rooms and organized table tops... But whenever I try to place things on tables they just fall right through or dip down under the surface. I tried using the 2D editor by tweeking the object elevation as well as trying to place them in zeus. Same result each time... Is there a code or script or anything I can enter when I place an object to deacivate gravity on it?
Title: Re: Fighting Gravity
Post by: SSG (Ret) Atkinson on November 02, 2015, 12:16:04 PM
https://community.bistudio.com/wiki/enableSimulationGlobal

Should do the trick
Title: Re: Fighting Gravity
Post by: K. Santos on November 02, 2015, 12:37:47 PM
I'm still learning the ways of the force, does this get put in the "init" line of the object in editor?
Title: Re: Fighting Gravity
Post by: Waller on November 02, 2015, 12:44:07 PM
I'm still learning the ways of the force, [...]

You have much to learn my young padawan.
Title: Re: Fighting Gravity
Post by: Maple on November 02, 2015, 12:51:57 PM
Important to note that the link the SSG supplied is for multiplayer, if you're doing this for a SP scenario you'll need to use this (http://"https://community.bistudio.com/wiki/enableSimulation") instead.

If you wanted to disable simulation on a laptop to sit ontop of a table for example, and you named it (Something like laptop_1), it'll look like this in the unit's init line;

Code: [Select]
laptop_1 enableSimulationGlobal false;
Edit: If I remember correctly, 'this' doesn't work in MP scenarios, so don't use that.
Title: Re: Fighting Gravity
Post by: K. Santos on November 15, 2015, 05:17:47 PM
Ok, well, here's another gravity defying question... I'm trying to place objects on top of tables. The tables are in buildings that are on "terraces" on hillsides. So the world below it's X axis is slanted... Which makes the objects slanted... How can I zero that out so the object is just level?

(http://images.akamai.steamusercontent.com/ugc/581323629932238229/FFDB6F98C7E3FB1375FE0EA98C4019DA80CAD488/)
Title: Re: Fighting Gravity
Post by: C. Scott on November 15, 2015, 05:20:52 PM
Attachto is still a good option.

https://youtu.be/dup7-T-08Pc?list=PL-rNisMp5bxHiyFWCAc2x4ioM1lxHZtpl
Title: Re: Fighting Gravity
Post by: SSG (Ret) Atkinson on November 15, 2015, 05:26:39 PM
Alternatively you can try this to set it's vector up

https://community.bistudio.com/wiki/setVectorDirAndUp

Attachto might work best though.