Home   Help Search Login Register  

Author Topic: What script do you use to arm and load a weapon you added in a mission?  (Read 469 times)

0 Members and 1 Guest are viewing this topic.

IlikeOFP

  • Guest
I have a mission where you are the leader of a group to retake an airport from the Russians. Ok well you don't need to know that much.  Anyways so you are playing as an Officer (Hand Gun eq.) I removed the M16 and replaced it with an M21 and replaced the ammo.  The trouble I'm having is how to automatically load and arm the M21, because you start out with it but it switchs to the Pistol because it is not loaded.  How do I load and arm the NEW weapon in a script.  ??? :'(


 8)It would be cool if you guys could find out for me. 8)

                          Thanks for the   :help:

Buzz

  • Guest
You have to put the add ammo before the add weapon in the script

VUSN042

  • Guest
Make sure you script in at least one of the magazines before you script in the weapon.

Example Init line:
this addMagazine "M16"; this AddWeapon "M16"

You can also add the selectWeapon command on the end if you need:
this addMagazine "M16"; this AddWeapon "M16"; this selectWeapon "M16"

Note the selectWeapon command requires the muzzle name, which is not necessarily the same as the weapon name (eg M16+M203 & other multi-muzzle weapons).

---edit---
umm, hehe, yeah what he said :)
« Last Edit: 27 Jun 2003, 20:56:00 by VUSN042 »

IlikeOFP

  • Guest
Thanks for the help guys it worked perfectly. ;D :o ::) 8) ;) :) :D :cheers: :thumbsup: :wow: :wave: :toocool:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
kool ;D

now push da solve botton ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta