Home   Help Search Login Register  

Author Topic: HELP  (Read 754 times)

0 Members and 1 Guest are viewing this topic.

Kane777

  • Guest
HELP
« on: 21 Oct 2002, 02:14:48 »
 ??? ??? i need help i need a full report on how to delete a guys weapon then give him a new one while making a mission :'(

Guru

  • Guest
Re:HELP
« Reply #1 on: 21 Oct 2002, 13:10:33 »
use the removeweapon ,removemagazine commands to remove his weapons and ammo. then use the addweapon, addmagazine commands to put stuff in IE:
in ur dudes init:
-
     this removeweapon "weaponname";
     this removemagazine "magazine name";
-
do the magazine one 4 times as he carries 4 magazines.
then:
-
      this addweapon "weaponname";
      this addmagazine "magazine name";
-
all of those go in the init line of your dude remove first then load of coarse.it will be a long line of code but it will fit.
you can get the weapon names and ammo names in the editors depot look for the "comref"(command reference)

I-RZ#

  • Guest
Re:HELP
« Reply #2 on: 21 Oct 2002, 13:40:38 »
Make sure you put the addMagazine commands first as you'll have to reload or might not possibly be able to fire anything :(

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:HELP
« Reply #3 on: 21 Oct 2002, 20:04:29 »
a much easier way of removing those pesky magazines is using the nice removeMagazines command (note the end -s) ;)

unit removeMagazines "magname"

A full list of weapons should be available in the Editor's Depot, if nothing else it's attached to the trusty old UCR (unoffical command reference). I heartily suggest you download that baby ;)

Wolfrug out.

"When 900 years YOU reach, look as good you will not!"