zodd 14 Posted August 8, 2013 I am doing up a basic supply carrying/loading script for a mission I am making; works perfectly so far (Players can grab barrels and move them to vehicles, load them in the back and unload them) I am using the attachTo and detach for this however when I detach a barrel and they are above the ground level, they just float there (ie. no gravity/physics) Does anyone know how to re-enable gravity on these objects? Current workaround is just setPos to ground level but surely there is a better way? (Or at least ANOTHER way?) Share this post Link to post Share on other sites
Beerkan 71 Posted August 8, 2013 I am doing up a basic supply carrying/loading script for a mission I am making; works perfectly so far (Players can grab barrels and move them to vehicles, load them in the back and unload them)I am using the attachTo and detach for this however when I detach a barrel and they are above the ground level, they just float there (ie. no gravity/physics) Does anyone know how to re-enable gravity on these objects? Current workaround is just setPos to ground level but surely there is a better way? (Or at least ANOTHER way?) You could try this enableSimulation true; See Arma Wiki enableSimulation command Share this post Link to post Share on other sites
cuel 25 Posted August 8, 2013 Also ty _object setVelocity [0,0,-.1]; Share this post Link to post Share on other sites
zodd 14 Posted August 9, 2013 enableSimulation didnt work (tried it first up) Neither did setVelocity.... strange? Share this post Link to post Share on other sites
kylania 568 Posted August 9, 2013 If setPos works why aren't you using it? Share this post Link to post Share on other sites
zodd 14 Posted August 9, 2013 I am using it now but because it has different results when in a vehicle (the player is higher) I was hoping for physics to take over. (And seems like it logically should be able to if something is above the ground) Although interestingly... with the metal bins gravity doesnt seem to want to work but I changed to the plastic bins and they work fine! Share this post Link to post Share on other sites