Home   Help Search Login Register  

Author Topic: Parachute Weapons  (Read 703 times)

0 Members and 1 Guest are viewing this topic.

Uberminch

  • Guest
Parachute Weapons
« on: 07 Feb 2003, 18:42:41 »
I tried changing the weapon loadout to include a sniper rifle for a resistance paratrooper in my mission. However, when he hit the ground his weaponry changes to that of a regular resistance soldier.

this probably has something to do with putting script in the Init field, or using script with a trigger, but I would appreciate anyone who can tell me what that might be.


Thanks.

silent1

  • Guest
Re:Parachute Weapons
« Reply #1 on: 09 Feb 2003, 13:01:28 »
  If you mean to change the Resistance man's weapon, then you need to remove it first. This can all be done in a script, but it's easier to do it in the Initialization field of the soldier, just like you said.

 

    Unitname RemoveWeapon "WeaponName"

Where UnitName is the name of the resistance soldier, and WeaponName is the name of the weapon (suprise surprise) :)

You'll also need to remove the magazines.

    UnitName RemoveMagazines "WeaponName"

Afterward, add the weapon you want the Soldier to have, but put it's ammo in first, to make sure that the weapon is loaded.

    UnitName AddMagazine "WeaponType"

The Weapon next:

    UnitName AddWeapon "WeaponType"

Be sure to put in the ; characters inbetween each line of code.

Hope this helps!   :)

Uberminch

  • Guest
Re:Parachute Weapons
« Reply #2 on: 10 Feb 2003, 14:53:03 »
I removed the AK47 and the AK47 mags. That wasn't the problem. When the guy was drifting down in his chute, he had the M21 I wanted. But when he landed, his weapon changed to an AK47

The removeing weapons/mags thing works if you are parachuting out of a chopper or something at some point during the mission, but if you are a parachute starting the mission in mid-air it doesn't work.

I hope I don't sound redundant :-\

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Parachute Weapons
« Reply #3 on: 10 Feb 2003, 16:30:47 »
Hmmm. Make him jump from a chopper then. Black in after his parachute is up and remove the chopper(I think thereÂ's a remove vehicle command). DonÂ't forget to fade da sound. ThereÂ's a command for that but I donÂ't remember completley. It was somethin like this

Fadesound 0

or somethin