OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Loup-Garou on 09 Nov 2003, 18:10:13

Title: Hand-to hand combat
Post by: Loup-Garou on 09 Nov 2003, 18:10:13
How can I edit a soldier in order that he can fight with his fists (or a empty weapon) ? I've found things about "StokeFist" and "StrokeGun" but nothing about how to use them  ??? (I tried things in the editor such as : this addWeapon "StokeFist" / this addMagazine "StrokeGun" ... but it doesn't worked... :noo:). Can anybody help me ?
Title: Re:Hand-to hand combat
Post by: macguba on 09 Nov 2003, 19:20:53
Use the forum search function, there are a couple of threads about this kicking around.    It's difficult to make it work well.
Title: Re:Hand-to hand combat
Post by: Loup-Garou on 09 Nov 2003, 19:34:45
Thank again, MacGuba  :cheers:
Title: Re:Hand-to hand combat
Post by: sabreblade on 09 Nov 2003, 20:54:08
this thread should help  ;)
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=14004
Title: Re:Hand-to hand combat
Post by: Loup-Garou on 19 Feb 2004, 14:10:26
Ok ! It finally works ! (thousand thanks to macguba again  :cheers:). In the unit's init field : removeAllWeapons this;this addWeapon "StrokeFist";this addMagazine "StrokeFist"

You obtain : "Fist  100" in the top left of the screen (you can drop it). If you do the same thing with "StrokeGun", you get "Strike  100" (same animation).

Phew ! It was difficult to obtain, but topic is SOLVED !  8)

Additional note : with "fist", you can kill a guy in about 5 hits. With "strike", only one or two.