Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
charliereddog

How does Flyinheight relate to Z pos?

Recommended Posts

Basically, I noticed last night if you set pos a person on the roof of a building, say using 3 as the zpos, that if you get a chopper to flyinheight 3, it's a whole lot lower. Obviously one is one unit of measurement, and the other is a different one. Like meters and feet, perhaps.

I wonder if anyone has confirmation of the relationship between these two units?

Share this post


Link to post
Share on other sites

In Armed Assault you don't have to setpos xy,10 etc to place units on roofs.

Drag them onto the building and the game will automatically place the unit on the roof.

At least this goes for most buildings, haven't tried on the ones who actually have a first or second floor.

About the difference.

if the unit would be feet for helicopters.

try placing a soldier and directly above it a flying heli in flyInHeight 3

if soldier has his head up the hull of the heli it is indeed 3 feet(1m)

However I doubt it.

Perhaps the building you are reffering too is taller than 3 meters?

And the game has adjusted the unit to be on the roof as I mentioned previously.

To determine a buildings height you will need to hover a heli just beside it.

If you land on a building your heli altitude will be 0.

Does this make any sense at all?

Share this post


Link to post
Share on other sites

Yes, it does make some sense indeed.

As for the setpos'ing onto roofs, i didn't know arma handled that automatically, so I fiddled around finding the optimum setpos level, which was 3, so I'm confident that my setpos z level is correct, and I'd expect 3 metres to be the rough height of a single storey flat roofed building.

Your comment about hovering the chopper next to, rather than on the building is interesting. Obviously the alt changes when a chopper is over a building then, but does the flyinheight?

I'm guessing here that the flyinheight is always taken from the groundlevel?

At work, so I can't play about, but it's given me some interesting things to ponder.

Share this post


Link to post
Share on other sites

Yes, the flyInHeight is according to ground level.

Thus you shouldn't do flyInHeight and make a wp on the otherside of a forest or city, your AI pilot will sturdily ram the next object that comes in his way.

You could try "getPos" the chopper to see and compare with your bloke on the roof.

(I'll try that)

Share this post


Link to post
Share on other sites

The_Taurus,

Cheers mate. AS you've probably guessed, I'm pratting around with getting a chopper to land on a building using flyinheight. No concerns about flying into trees here tounge2.gif

Therefore, i need to be able to convert the zpos into flyinheight number that is close enough to get in or out of a chopper without breaking legs or arms. I'm not overly fussed if it ends up with a chopper hovering slightly above the building. It probably makes it look cool anyway.

Share this post


Link to post
Share on other sites
The_Taurus,

Cheers mate. AS you've probably guessed, I'm pratting around with getting a chopper to land on a building using flyinheight. No concerns about flying into trees here tounge2.gif

Therefore, i need to be able to convert the zpos into flyinheight number that is close enough to get in or out of a chopper without breaking legs or arms. I'm not overly fussed if it ends up with a chopper hovering slightly above the building. It probably makes it look cool anyway.

Hehe, its ok smile_o.gif

Its in feet...

See picture below, sorry for imageShack, have your pop-up blocker armed and ready.

I then guess that the speed on the heli is in mph or maybe knots(it should be knots tbh)

http://img503.imageshack.us/my.php?image=armaheliflyinheightqm3.jpg

Share this post


Link to post
Share on other sites

Brilliant. I can't get imageshack here at work, but that's grand. So obv coords are in mtrs, and flyinheight is in feet. That's a simple enough conversion to allow the damn thing to fly to the predetermined height of the building.

Now all I have to do is detect the height of the building! crazy_o.gif

Share this post


Link to post
Share on other sites

You could use a "radio Alpha" trigger and a "empty object saddle"

name the saddle object "dummy", place it so you can see it from the building itself ofc.

and in "radio alpha" which you set to trigger repeatedly

on Act:

dummy setPos[(getPos dummy) select 0, (getPos dummy) select 1, ((getPos dummy) select 2)+1];

This will move the dummy object 1 meter upwards each time you use radio alpha smile_o.gif

if you don't remember how many times you used radio alpha you can add

player groupChat format["is now at %1 meter",(getPos dummy) select 2];

to the "on Act" line of the radio Alpha trigger

Or check internetz if theres some page that list info/Data about the buildings in ArmA

Good luck!

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  

×