OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Siber Fox on 18 Sep 2002, 03:54:28

Title: fight, fight, fight...
Post by: Siber Fox on 18 Sep 2002, 03:54:28
Is it possible to make a soldier fight another. EX: 2 Soldiers getting into a fist fight with out killing eachother; a civilian fighting a soviet.
Title: Re:fight, fight, fight...
Post by: macguba on 18 Sep 2002, 04:20:56
Consider the Tao of unofficial command reference and Strokefist and Strokegun.   I can't even remember if they are weapons or actions, but they are there somewhere.

Depending on who you want to fight whom there may be other complications.    Make it work with East and West first and take it from there.
Title: Re: fight, fight, fight...
Post by: RolsRois on 07 May 2009, 22:07:29
 :clap: i believe you need to do the next scripting:
First, add to each unit you want to fist fight:
Code: [Select]
This addmagazine "Strokefist";this addweapon "Strokefist"
Secondly, create a trigger:
In the condition: Not alive thefirstsoldiersname
and in the action: thefirstsoldiersname setdammage 0;

that trigger will turn the soldier immortal.
create a similar trigger to the second soldier.
i believe this is a temporary solution to your problem
Title: Re: fight, fight, fight...
Post by: savedbygrace on 08 May 2009, 00:08:09
Ha,ha. You must have been looking for a solution to the same problem? :D Thanks for using the search feature rather than starting another thread on the subject. Others should be so determined.