Jump to content
Sign in to follow this  
Cool_Story_Bro

ARMA 2 inquiry

Recommended Posts

Ok, so essentially I have constructed a huge mothership in the editor that flies and whatnot. The problem is that unless units on it are "holding" onto something (i.e., operating an M2 or any other static object), they will be flung off of the vehicle by its propulsion. Is there any way to correct this? It isn't a huge deal, really. :cool:

Share this post


Link to post
Share on other sites

As long as the mothership stays still it is fine. The moment it moves the ones on top aren't moving and they fall off.

If there was a way to 'add' the movement vectors from the ship onto each of the 'non-attached' then it would be great, but that's not the case atm.

Share this post


Link to post
Share on other sites

You can kind of correct it, however, be prepared to dive into trigonometry and vector operations, because you will need to calculate the velocity and acceleration of the ship at each axis, and probably in multiple areas of the ship as well, then determine the appropriate vector to "soften" the fling using setVelocity. This requires alot of math and some very special conditions for loops. A lot of processing with not a whole lot of return.

but as an easy alternate solution: attach fold_chair 's to the ship, have people incargo of the chairs, tada :D

Share this post


Link to post
Share on other sites
You can kind of correct it, however, be prepared to dive into trigonometry and vector operations, because you will need to calculate the velocity and acceleration of the ship at each axis, and probably in multiple areas of the ship as well, then determine the appropriate vector to "soften" the fling using setVelocity. This requires alot of math and some very special conditions for loops. A lot of processing with not a whole lot of return.

but as an easy alternate solution: attach fold_chair 's to the ship, have people incargo of the chairs, tada :D

I feared your former solution would be so; however the latter is much more intriguing. I've dedicated probably over 500 hours to ARMA II (most of it having been spent in the editor) and have never seen folding chairs. Where are they located?!

Share this post


Link to post
Share on other sites
I feared your former solution would be so; however the latter is much more intriguing. I've dedicated probably over 500 hours to ARMA II (most of it having been spent in the editor) and have never seen folding chairs. Where are they located?!

they arent visible in the editor - you have to create them using createVehicle. They are special hidden objects that do magic stuff that other objects cant do pretty much, there was another one called invisible man and invisible door. anyway here is the code for creating the chair

myChair = "FoldChair_with_Cargo" createVehicle getPos this;

so you would have to play around abit with the position, since you cant reference the object directly.

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
Sign in to follow this  

×