OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nobby 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
-
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. :)
-
double post, all replys here (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=2467), thanks