OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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 ?
-
Use the forum search function, there are a couple of threads about this kicking around. It's difficult to make it work well.
-
Thank again, MacGuba :cheers:
-
this thread should help ;)
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=14004
-
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.