Home   Help Search Login Register  

Author Topic: Changing Handguns  (Read 866 times)

0 Members and 1 Guest are viewing this topic.

Nobby

  • Guest
Changing Handguns
« on: 11 Oct 2002, 13:27:31 »
Howz these apples?
I want to  have a guy that can have two handguns, not 2 different handguns but the silenced version and unsilenced version of a gun.
Then in the ACTION menu I want to have the option to "ADD SILENCER" and "REMOVE SILENCER". So it's just the same gun but with a silencer and without a silencer, perfect for a mission where you have to use stealth until the alarm is raised, and then stealth dunt really matter.
Saw a Radio script once upon a time that meant a soldier could carry both a M16 and a sniper rifle but I can't find it.
Any help would be greatly appreiciated.

Cheers

Nobby

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Changing Handguns
« Reply #1 on: 11 Oct 2002, 19:27:52 »
Yep, you can do this.    You will need  two little scripts, one to change to silenced and one to change to normal.    Each script will have two main bits.  

One bit will change round the thing in the action menu, for which you will need the addAction command.   (thinks:  there must be a removeAction command as well ....)

The other bit will swap round the weapons for which you will need addWeapon and removeWeapon .. hopefully both guns will take the same ammo so you don't need to get bogged down with ammo.

The un+official command reference guides in the Editors Depot - Tuts - References will help with info on the commands.    I'm sorry I can't be more specific, I'm just making this up as I go along.  Hopefully somebody will fill in some more details.   :)
Plenty of reviewed ArmA missions for you to play

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Changing Handguns
« Reply #2 on: 11 Oct 2002, 22:12:05 »
double post, all replys here, thanks