The script is taken down ATM, something wrong with addMagazine.
The inventory is not working like how it did in ArmA 2.
Single-shot PCML Launcher
The first thing is that everything in this description is optional, which means you can configure them to your needs easily! Basically this is a small script to make the PCML not require ammo and be a single-shot launcher, like it's real live variant NLAW. It spawns a "prop" of the used rocket soon as you fire it and switch to your primary weapon. It also has an option to look for either a vest or backpack to put the temporary ammo in, so for example if you're a civilian you won't be able to fire the launcher, just like an actual civilian whouldn't be.
-Choose which kind of equipment a person needs to fire the launcher.
-Choose if you want used launcher "props" to spawn or not.
-You can also have those "props" deleted after a certain time, for continuous missions eg.: Domination or Altis Life.
-Small but efficent! 3kb script, gets the job done.
Copy paste the scripts folder in to your mission directory, put
in the init.sqf
For people, clans, or mission makers that wants single-shot launchers but don't want to install mods. Also as I mentioned above good for stopping unequipped people from firing them, and performance friendly!
-Removed RPG-42, since devilslayersbane
has notified me it's not actually a single-shot launcher in real life.
-Added the prop function
-Added parameters for everything
Credits & Thanks:
Huge, by huge I mean all the credit goes to LowSpeedHighDrag's old script for ArmA 2 (from 2010).
is the link to that, for documentation. Almost none of his original code is left in, but he's the one who came up with the idea.