Home   Help Search Login Register  

Author Topic: Empty added Weapon after RemoveWeapon  (Read 564 times)

0 Members and 1 Guest are viewing this topic.

Mr.BoDean

  • Guest
Empty added Weapon after RemoveWeapon
« on: 22 May 2003, 09:35:20 »
How do you make a unit's new weapon start off loaded with just a simple command in a unit's Initialization??

Ex.:
Unit = P1
Type= Soldier
Init. : this RemoveWeapon "M16"; this RemoveMagazines "M16"; this AddWeapon "G36a"; this AddMagazine "G36aMag"; this AddMagazine "G36aMag"

So I get my G36 with 2 clips, but the gun is not loaded until using the "Reload" command. I checked the Command Ref for something like "ReloadWeapon" or "LoadAmmo" , but saw nothing appropriate.   :-\
« Last Edit: 22 May 2003, 09:36:50 by Mr.BoDean »

Kaliyuga

  • Guest
Re:Empty added Weapon after RemoveWeapon
« Reply #1 on: 22 May 2003, 09:50:44 »
you have to add one mag before the weapon


this RemoveWeapon "M16"; this RemoveMagazines "M16";this AddMagazine "G36aMag";  this AddWeapon "G36a"; this AddMagazine "G36aMag"; this AddMagazine "G36aMag"



and then it will start already loaded ;)
:cheers:

Mr.BoDean

  • Guest
Re:Empty added Weapon after RemoveWeapon
« Reply #2 on: 22 May 2003, 10:14:06 »
DOH! I stumbled on that by accident right before I checked back here! Thanx, Kali.  ;)