OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: tate on 06 Jun 2005, 11:31:03
-
easier "beast gun" trick
Ok what it does is allow your character to carry more than 1 weapon ie a sniper rifle and an assault rifle. It also allows you to holster these weapons instead of slinging them on your back.
Make your player, give him a name ie player1
Make a trigger. Make this trigger repeatable.
Put Radio Alpha as its activation.
then use the code ---> player1 addmagazine "AK47";player1 addweapon "AK47"
Make a trigger. Make this trigger repeatable.
Put Radio Bravo as its activation.
then use the code --> player1 removeweapon "AK47"
Now in game if you press 0-0-1 you will pull out your AK
press 0-0-2 and you will holster the AK. This is great for if you want to do a civilian undercover mission.
when you take it out the first time just press space.
To add more than one weapon to be able to be used just make another 2 triggers using radio designations C-H.
-
Wont this give you unlimited ammo?
001001001001001 gives you 5 AK mags..
Maybe making them drop the weapon, and move it to an ammo crate or underground/in sky?
- Ben
[Edit : Just though : removing the weapon doesn't remove the mag? If so, remove the addmagazine bit, you'll only be able to carry the nomal ammount of mags, say, 8, but spread between the two weapons, so 4 each)]
-
Shouldn't you just
removeAllWeapons player before you add a gun then? That way you're not running around with an M16 and some AK mags....