OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Hoop 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
-
1. With an editor addon
2. Dunno
You're welcome.
-
@ Question #2
Create a pallet and name it "pallet".
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.
-
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?
-
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:
weapon = "weaponHolder" createVehicle [2898.221436,17.397015,0.25];
weapon addWeaponCargo ["AK74",1];
That should work.