Home   Help Search Login Register  

Author Topic: omitting specific weapons  (Read 1658 times)

0 Members and 1 Guest are viewing this topic.

beefhole1

  • Guest
omitting specific weapons
« on: 22 Jan 2005, 03:17:24 »
Hey everybody. Used to post here a long time, ago, now I'm back and the server thought it'd be fun to find my old username a different password from the one I used to have, so here I am beefhole1, not just beefhole.  ;)

Wow that was pointless. Onwards.

I know the command "removeallweapons this" in the init, I'm looking for the command that will remove a specific weapon. I've tried "removemp5a3 this" and a bunch of other combos but no luck.

While we're at it, how do you take out one weapon and add another on the same init line? I'm trying to create bodyguards using secret service skins that I dled, I want to take away the MP5s and give them a sidearm.
« Last Edit: 22 Jan 2005, 03:39:20 by beefhole1 »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:omitting specific weapons
« Reply #1 on: 22 Jan 2005, 05:45:39 »
Try this:

unitname removeWeapon "weaponname"

and for the mags:

unitname removeMagazines "weaponname"


You can have multiple commands on the same init line by separating each command with a ';' .



Planck
I know a little about a lot, and a lot about a little.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:omitting specific weapons
« Reply #2 on: 22 Jan 2005, 10:47:14 »
The command reference also mentions a
 
unitname removeMagazine "weaponname

http://www.ofpec.com/editors/comref.php?letter=R#removeMagazine

Note the singular.  It claims to remove one magazine.  I have not tested it.

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:omitting specific weapons
« Reply #3 on: 22 Jan 2005, 11:21:32 »
Isn't it a bit hazardous to use those commands (removeweapon, removemagazine, removemagazines) BIS warns us about in the comref?

Just take away unit's weapons with the removeallweapons command and then give weapons and equipment you want them to have.

Much safer that way.
« Last Edit: 22 Jan 2005, 11:23:00 by Baddo »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:omitting specific weapons
« Reply #4 on: 22 Jan 2005, 13:49:26 »
Very true Baddo, but

Quote
I'm looking for the command that will remove a specific weapon.

I was answering his specific question.

You only have to be careful not to end up with an invalid weapon and ammo configuration.


Planck
I know a little about a lot, and a lot about a little.

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:omitting specific weapons
« Reply #5 on: 22 Jan 2005, 18:10:52 »
OK, Planck.

:)
I'm trying to create bodyguards using secret service skins that I dled, I want to take away the MP5s and give them a sidearm.

I think he wants to change the gear right from the beginning of his mission.

If that is the case, then removeallweapons is the way to go, imho.
« Last Edit: 22 Jan 2005, 18:11:07 by Baddo »

beefhole1

  • Guest
Re:omitting specific weapons
« Reply #6 on: 23 Jan 2005, 02:28:23 »
Well, I had no choice but to use removeallweapons in the end, I couldn't find the weapon identification for the MP5. The problem I'm having now is adding magazines. Here's what I'm doing-

removeallweapons this; res1 addweapon "uzi"; res1 addmagazine "uzi"

The uzi shows up, the ammo doesn't.

Homefry31464

  • Guest
Re:omitting specific weapons
« Reply #7 on: 23 Jan 2005, 03:32:44 »
I recommend adding the magazines before the weapon, otherwise you have to reload before using the weapon.

beefhole1

  • Guest
Re:omitting specific weapons
« Reply #8 on: 23 Jan 2005, 05:00:09 »
Very interesting... I can get M16 ammo with the same line but not uzi ammo. Very weird.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:omitting specific weapons
« Reply #9 on: 23 Jan 2005, 05:51:06 »
Try "uzimag" for the magazine.

Some weapons like the M16 have the magazine with the same name.

Other weapons have 'mag' tagged on the end of the weapon name.


Planck
I know a little about a lot, and a lot about a little.

beefhole1

  • Guest
Re:omitting specific weapons
« Reply #10 on: 23 Jan 2005, 07:00:51 »
Well Mr. Smarty pants, that did it. Thanks for the help  ;D.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:omitting specific weapons
« Reply #11 on: 24 Jan 2005, 06:38:38 »
A list of all weapon/magazine names can be found here:

http://ofpec.com/editors/resource_view.php?id=499

It came from the "references" section of the ed depot.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!