IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> how to put weapons/ammo etc in vehicles??????
berbinator
post Mar 3 2008, 23:54
Post #1


Member
***

Group: Members
Posts: 59
Joined: 1-November 07
From: South Carolina
Member No.: 1,615



__furious.gif OK this is driving me up the wall I have looked all over and tried about everything I have seen without avail. How do you put weapons and ammo into vehicles (read cars, trucks, tanks, etc) whenever I try _whatever vehicle it is addWeaponCargo ["MP5A5",1] it gives me some crap about local variable in global space or something? Malajn.gif I have never done this before and it is driving me batty. stupid.gif
 
Quote Post
D@V£
post Mar 4 2008, 00:28
Post #2


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



CODE
This addweaponcargo ["MP5A5",1]

Should work, are you sure that what you've got? (no underspace at the start)


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post
Denz
post Mar 4 2008, 04:09
Post #3


Member
***

Group: Members
Posts: 30
Joined: 20-February 07
From: UK
Member No.: 599



Just to chime in with addMagazinecargo for magazines etc.

All weapons and Magazine class names can be found here


--------------------
 
Quote Post
berbinator
post Mar 4 2008, 05:23
Post #4


Member
***

Group: Members
Posts: 59
Joined: 1-November 07
From: South Carolina
Member No.: 1,615



QUOTE(Denz @ Mar 4 2008, 00:09) *
Just to chime in with addMagazinecargo for magazines etc.

All weapons and Magazine class names can be found here

thankz allot guys will try it.
 
Quote Post
berbinator
post Mar 4 2008, 18:23
Post #5


Member
***

Group: Members
Posts: 59
Joined: 1-November 07
From: South Carolina
Member No.: 1,615



QUOTE(berbinator @ Mar 4 2008, 01:23) *
thankz allot guys will try it.

thanks a ton guys it works great. I can pimp my ride now with acouple machine pistols and stuff now thumbsup.gif

oops i guess i should have edited the post above.... can someone remove this last double post?
 
Quote Post
chance
post Mar 4 2008, 19:40
Post #6


Member
***

Group: Members
Posts: 45
Joined: 26-February 07
From: England
Member No.: 628



QUOTE(berbinator @ Mar 4 2008, 17:23) *
thanks a ton guys it works great. I can pimp my ride now with acouple machine pistols and stuff now thumbsup.gif

oops i guess i should have edited the post above.... can someone remove this last double post?


nice works as always guys thumbsup.gif

BUT on the other extreme do you know how to remove them all ?

I have tried removeallweapons in the init, and when creating the unit (vehicle) in question changed the ammo slider to nil, yet they always seem to have atleast grenades in them!
 
Quote Post
Denz
post Mar 4 2008, 22:06
Post #7


Member
***

Group: Members
Posts: 30
Joined: 20-February 07
From: UK
Member No.: 599



To remove a weapon
CODE
removeAllWeapons this

always check the COMREF wink.gif

for the grenades you may want to try removeMagazine if removeAllWeapons leaves them behind


edit:
yep, Rellikki is right. The removeMagazine command is for a unit


--------------------
 
Quote Post
Rellikki
post Mar 4 2008, 22:22
Post #8



Group Icon

Group: Addon Maker
Posts: 1,148
Joined: 4-November 06
Member No.: 13



QUOTE(Denz @ Mar 4 2008, 23:06) *
To remove a weapon
CODE
removeAllWeapons this

always check the COMREF wink.gif

for the grenades you may want to try removeMagazine if removeAllWeapons leaves them behind


Nope. To remove weapons from a vehicle, you need to use clearMagazineCargo and clearWeaponCargo commands.
 
Quote Post
chance
post Mar 5 2008, 08:05
Post #9


Member
***

Group: Members
Posts: 45
Joined: 26-February 07
From: England
Member No.: 628



QUOTE(Rellikki @ Mar 4 2008, 21:22) *
Nope. To remove weapons from a vehicle, you need to use clearMagazineCargo and clearWeaponCargo commands.


Cheers Rellikki nice one thumbsup.gif

see now we've all learned something in this thread hug.gif
 
Quote Post
brenn91
post Mar 10 2008, 02:00
Post #10


New Member
*

Group: Members
Posts: 9
Joined: 28-June 07
From: New Zealand
Member No.: 939



i found it is easy to put weapons in vehicles by using the arma edit software then copy and pasting the special script lines and change the name crate with the name of the object.
This way is for lazy people like me who cant be bothered writing out scripts
 
Quote Post
D@V£
post Mar 10 2008, 12:24
Post #11


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



QUOTE(brenn91 @ Mar 10 2008, 01:00) *
i found it is easy to put weapons in vehicles by using the arma edit software then copy and pasting the special script lines and change the name crate with the name of the object.
This way is for lazy people like me who cant be bothered writing out scripts


Wouldn't that take longer though?
Because, you've got to do all that messing around with ArmAedit, which admittedly is good for writing complex scripts, but this is just a matter of typing a line or so in the editor.


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post
berbinator
post Mar 10 2008, 15:20
Post #12


Member
***

Group: Members
Posts: 59
Joined: 1-November 07
From: South Carolina
Member No.: 1,615



QUOTE(D@V£ @ Mar 10 2008, 07:24) *
Wouldn't that take longer though?
Because, you've got to do all that messing around with ArmAedit, which admittedly is good for writing complex scripts, but this is just a matter of typing a line or so in the editor.

thumbsup.gif

Yeah all it was was writing one line of script in the init line of the vehicle/ammobox etc. in the mission editor, no opening other auxiliary programs or anything.
 
Quote Post
brenn91
post Mar 11 2008, 00:00
Post #13


New Member
*

Group: Members
Posts: 9
Joined: 28-June 07
From: New Zealand
Member No.: 939



QUOTE(berbinator @ Mar 11 2008, 03:20) *
thumbsup.gif

Yeah all it was was writing one line of script in the init line of the vehicle/ammobox etc. in the mission editor, no opening other auxiliary programs or anything.


yeah i spose itll take longer just im to lazy to remember the names LOL i just copy and paste and replace the name.
stupid.gif
 
Quote Post
Airton
post Nov 7 2008, 22:12
Post #14


New Member
*

Group: Members
Posts: 7
Joined: 9-April 08
From: Brasil
Member No.: 2,901



QUOTE(brenn91 @ Mar 10 2008, 02:00) *
i found it is easy to put weapons in vehicles by using the arma edit software then copy and pasting the special script lines and change the name crate with the name of the object.
This way is for lazy people like me who cant be bothered writing out scripts


yes a do i put a mp5 but i cant add magazines on a cargo.
help-me
 
Quote Post
Rellikki
post Nov 7 2008, 22:30
Post #15



Group Icon

Group: Addon Maker
Posts: 1,148
Joined: 4-November 06
Member No.: 13



QUOTE(Airton @ Nov 7 2008, 23:12) *
yes a do i put a mp5 but i cant add magazines on a cargo.
help-me

Why not? Please be more specific.
The command to add magazines in vehicles' cargo is addMagazineCargo and the MP5 magazine classnames are: 30Rnd_9x19_MP5 and 30Rnd_9x19_MP5SD. That's all you need to know... probably.
 
Quote Post
Aloha!
post Dec 23 2009, 01:33
Post #16


New Member
*

Group: Members
Posts: 9
Joined: 16-December 09
Member No.: 6,913



Hi to All!,

Hi Sir Rellikki,

I'm Paolo from Rome

I'm new in Arma Forum and I don't know how use it so well...

I'm emailing You about the uploading weapon on cargo... (I've seen Yours discussion)
I'm not so pratic about scripts and so on!... anyway:

I have a great Addon;
(I'd like to give You all or to public the file... only 1,7 mb) .. Left me know about it!...


it's a mortar by 81 mm. with optical and balistic regulation on map;
it's a great re-production of the Irak conflict weapon...
Of course, it's a static weapon and I'd like to magazine on truck or load on it, in order to move
it in red zone... Could You tell me how can I do?

giving file to You, could be of help, Rellikki?

I hope in Your help and news...

And, evrywhere would like this beautiful Arma1 addon, left me know ...

Kind Regards Guys,

Paolo




 
Quote Post
Aloha!
post Dec 23 2009, 02:35
Post #17


New Member
*

Group: Members
Posts: 9
Joined: 16-December 09
Member No.: 6,913



Here the Addon for You, Guys:

http://www.megaupload.com/?d=R9EMCC9G

...

 
Quote Post
D@V£
post Dec 23 2009, 14:16
Post #18


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



In the future please don't post directly after yourself within a few hours, instead use the edit button.


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 23rd April 2024 - 10:14