OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bobthedinosaur on 15 Jan 2004, 23:24:10

Title: adding satchel charges to a unit
Post by: bobthedinosaur on 15 Jan 2004, 23:24:10
should work like this

this addweapon "pipebomb"; this addmagazine "pipebomb";

right?
but then i get weird amount of satchels and i can only plant one, and also i get the option of "throw weapon" when playing this unit but it does nothing :'(
Title: Re:adding satchel charges to a unit
Post by: gundernak on 16 Jan 2004, 00:38:07
try this:

start it with 'removeAllWeapons this'

and after that you should add the weapons which you want (and wich the unit can carry)
Title: Re:adding satchel charges to a unit
Post by: Captain Crunch on 18 Jan 2004, 04:27:07
RemoveAllWeapons This; This AddMagazine "PipeBomb"

I get the Throw weapon too and it doesn't work either. Don't know!

But      This AddWeapon "PippeBomb"   won't work.

You need to type   This AddMagazine "PipeBomb"

To add a weapon, don't forget to add its respective magazine to have it already charged in the game. (Not for explosives)