Home   Help Search Login Register  

Author Topic: LAWlauncher pickup?  (Read 764 times)

0 Members and 1 Guest are viewing this topic.

Bad Maniac

  • Guest
LAWlauncher pickup?
« on: 16 Apr 2003, 12:13:36 »
 ???
I have searched both Opfec and other FP editing sites, and I have searched through the forums, Downloaded various tutorials, and Googled on this, but I can't find it!
Probably because it's so simple and I'm just dumb not to find it.

Q:
How do I add a weapon crate containing a LAWlauncher.

I'm making a small MP mission, and I've got the respawn and everything working fine, I just need a crate next to the respawn area, where the players can pick up LAWlaunchers. But no matter wich of the ammo crates I try in the editor, none of them contain LAW launchers.
Please help me out.

//Martin

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:LAWlauncher pickup?
« Reply #1 on: 16 Apr 2003, 12:30:44 »
Did you Search the FAQ :hmm: ;)

Quote
GENERAL SP EDITING: How to remove & add weapons to cargo (Beginner) Submitted by:    Credits: danbryant4, LCD, Wolf
Type the following command in to an ammocrate's init field.

For removing all weapons:
ClearWeaponCargo this

For removing all magazines:
ClearMagazineCargo this

For adding some weapons:
This AddWeaponCargo ["Yourweapon", Amount]

For adding some magazines:
This AddMagazineCargo ["Yourmagazine", Amount]

Remember to separate your commands with a ; in the init field.
To get a list of weapon and magazine names go to here

[edit]
You have the official command reference right? right?!
If you don't you get it NOW from the editors depot -> references -> second page.
You can find all the weapon names in that reference too  ;D
[/edit]
« Last Edit: 16 Apr 2003, 12:32:48 by Artak »
Not all is lost.

Bad Maniac

  • Guest
Re:LAWlauncher pickup?
« Reply #2 on: 16 Apr 2003, 12:59:28 »
Yeah I searched the faq and the forums for "LAW pickup" and various variants of that... go figure.
That worked fine, now I can add an empty LAWlauncher to an ammo crate. completely useless since I can't add ammo for it in the same crate, OR another crate.
This AddMagazineCargo ["LAWlauncher", 15] does exactly nothing. And how can I add more than one command to the same ammo crate?
I tried separating them with .,:; but none of them worked, and searching the faq once again proved futile, because nothing I can come up with exists in the faq...
Sorry to be annoying but I CANT FIND ANY ANSWERS ANY WHERE!

(oh, and, yes of course I have the command reference  :) )
« Last Edit: 16 Apr 2003, 13:00:15 by Bad Maniac »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:LAWlauncher pickup?
« Reply #3 on: 16 Apr 2003, 13:12:52 »
I don't know why This AddMagazineCargo ["LAWlauncher", 15] won't work.
You can separate commands with a ; like stated in the quote.
Not all is lost.

asmodeus

  • Guest
Re:LAWlauncher pickup?
« Reply #4 on: 16 Apr 2003, 13:17:45 »
One helpful thing to make note of when attempting such things...

Add the magazine first, then the weapon!!

This is the only way to have the weapon start the mission loaded.  (as far as I know)   ;)

Hope that helps!

Asmo

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:LAWlauncher pickup?
« Reply #5 on: 16 Apr 2003, 13:20:24 »
I always thought that adding magazines first to a soldier and the the weapon would just prevent that he needs to reload before he can use the added magazines.
I'm not so sure it has anything to do with adding weapons to cargo  ???
Not all is lost.

asmodeus

  • Guest
Re:LAWlauncher pickup?
« Reply #6 on: 16 Apr 2003, 13:32:55 »
'doh!   :-[

you're right!   ;)

The problem is probably that the player that's picking up said launcher lacks the room to carry a law rocket...

Is that the prob?   ::)  (I'm really reaching in the dark, but if it helps at all w/ the answer process, it's all good)   ;D

Asmo

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:LAWlauncher pickup?
« Reply #7 on: 16 Apr 2003, 13:57:49 »
This sounds like one of these bizarre OFP madnesses.    

Delete your ammo crate, save the mission, exit OFP and reboot.   Fire it up again, add a new ammo crate and copy and paste this into its init line

this addWeaponCargo ["LAWLauncher",1]; this addMagazineCargo ["LAWLauncher",2]

I've tested it and it works for me.   I copied and pasted from my mission.   Good luck!
Plenty of reviewed ArmA missions for you to play

Bad Maniac

  • Guest
Re:LAWlauncher pickup?
« Reply #8 on: 16 Apr 2003, 18:11:19 »
That worked Macguba, The weird thing is, when I copy and paste the line you gave me, it doesn't work, but when I typ the EXAKT same thing, it works fine.
Thanks a lot for all your quick responses.