Home   Help Search Login Register  

Author Topic: Buildings  (Read 1389 times)

0 Members and 1 Guest are viewing this topic.

Offline Hoop

  • Members
  • *
Buildings
« on: 15 Sep 2007, 00:27:03 »
Is there a way in ArmA that you can place buidings in your map ?


And another question how do i place 2 AK's on a pallet ?

Thank you

Offline Nixer6

  • Members
  • *
Re: Buildings
« Reply #1 on: 15 Sep 2007, 01:26:54 »
1. With an editor addon

2. Dunno

You're welcome.
Why do I have to be a Rocket Scientist to make a good mission?

Offline Cheetah

  • Former Staff
  • ****
Re: Buildings
« Reply #2 on: 15 Sep 2007, 11:41:36 »
@ Question #2

Create a pallet and name it "pallet".

Code: [Select]
weapon = "weaponHolder" createVehicle getPos pallet;
weapon setPos [(getpos pallet select 0),(getpos pallet select 1),0.25];
weapon addWeaponCargo ["AK74",1];

With this code you can create a weapon on the pallet, for the second. Copy this code and play with the values in the 2nd line.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Hoop

  • Members
  • *
Re: Buildings
« Reply #3 on: 18 Sep 2007, 23:45:26 »
2898.221436,17.397015,2868.661133 this is the position.  I tried placing the code you sent me with this in the place were the zero is in this part of the code ....

weapon setPos [(getpos pallet select 0),(getpos pallet select 1),0.25];


But every time i do things pop up aying missing; or missing) or tells me to type any, expected nothing wtf is going on lol am i doing something wrong?

Offline Cheetah

  • Former Staff
  • ****
Re: Buildings
« Reply #4 on: 19 Sep 2007, 23:56:19 »
Erhm.. if that is your position it is 3km up in air?

[2898.221436,17.397015,2868.661133] = x,y,z

Assuming that the last number is wrong, the proper coordinates are: [2898.221436,17.397015,0]

In the script, use:

Code: [Select]
weapon = "weaponHolder" createVehicle [2898.221436,17.397015,0.25];
weapon addWeaponCargo ["AK74",1];

That should work.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!