Jump to content
Sign in to follow this  
Motavar

Arma 3 - Scripting - How do you place Hospital building pieces and link them?

Recommended Posts

Question:

I'm trying to place a Hospital down with all 3 parts (main, side1, side2) and link them together without spaces. Does anyone know how to accomplish this via a script?

Right now I'm trying to accomplish this by placing an invisible helicopter pad down and script all 3 parts together but there are still spaces between structures:

OpforBase="Land_Hospital_main_F" createVehicle position this;

OpforBase1="Land_Hospital_side1_F" createVehicle position this;

OpforBase2="Land_Hospital_side2_F" createVehicle position this;

deleteVehicle this;

this setvectorup [0,0,1];

Share this post


Link to post
Share on other sites

If you have a specific location in mind then just create the vehicles are tweak the positions until they are just right.

Share this post


Link to post
Share on other sites

hi Motavar,

you could try following:

-place marker near hospital in Kavala

-get relative positions of the 3 parts to the marker

-create a 2nd marker where you want your hospital

-create the 3 parts with the relative positions from above

-attach them to the 2nd marker so their position is now based on the markers one and rotate the marker as desired.

That would be my approach.

good luck and happy bug hunting :)

Share this post


Link to post
Share on other sites

Afterwords, to save trouble in the future, you can store the completed hospital into a custom composition, so it (as a whole) can simply be spawned anywhere, in any direction.

Share this post


Link to post
Share on other sites

Thank you everyone.

I'll give all these suggestions a try tonight and see if I can link these objects together.

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  

×