Jump to content
Sign in to follow this  
iwantfun

how do u spawn buildings?

Recommended Posts

i would like to be able to spawn any building in arma 2. This is what i mean by buildings.

Share this post


Link to post
Share on other sites

You can use createVehicle to almost spawn any object, buildings as well ;)

Example:

_crane = createVehicle ["Land_A_CraneCon", position player, [], 0, "NONE"];

would spawn a Crane on your spot.

Using createVehicle_array instread of createVehicle is encouraged.

Share this post


Link to post
Share on other sites

Please note that using "CAN_COLLIDE" in the last parameter can help you positioning buildings (like walls) without any gaps because the spawning won't check for collisions.

But can - in some cases - produce unwanted results so use it with caution.

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  

×