Jump to content
Sign in to follow this  
Coltace

Aircraft hangar

Recommended Posts

Hi Guys,

Just a simple one, I for the life of me cannot find the aircraft tent hangar or a tradition corrugated iron hangar in the editor under 'Empty' where is it ? if not is there a mod that will give it to me ?

Cheers

Coltace

Share this post


Link to post
Share on other sites

Place a Game Logic and put this in its init field:

Hangar = "Land_Hangar_F" createVehicle position this; Hangar setDir 270;

Change the setDir number to rotate it.

If you want the tent hangar, replace "Land_Hangar_F" with "Land_TentHangar_V1_F"

Edited by GrumpyRhino

Share this post


Link to post
Share on other sites

Thank you so much for the response guys, I will certainly give it a try, thanks to both of you

Share this post


Link to post
Share on other sites

Not sure if a gamelogic returns a direction but worth a try:

Hangar = "Land_Hangar_F" createVehicle position this; Hangar setDir (getdir this);

If this is a lucky shot, rotating the icon should also rotate the hangar.

Share this post


Link to post
Share on other sites
Myke;2684116']Not sure if a gamelogic returns a direction but worth a try:

Hangar = "Land_Hangar_F" createVehicle position this; Hangar setDir (getdir this);

If this is a lucky shot' date=' rotating the icon should also rotate the hangar.[/quote']

It works Myke.

I will still be using the setDir metode. I think it's easier to align buildings, if you enter the numbers manually.

Thanks for the tip though. :)

Share this post


Link to post
Share on other sites
It works Myke.

I will still be using the setDir metode. I think it's easier to align buildings, if you enter the numbers manually.

Thanks for the tip though. :)

Probably depends on what you want to do which approach is the best. For example, aligning a object parallel to another object is easier by simply rotating/adjusting a icon rather to guess the direction. ;)

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  

×