OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GingaWRATH on 31 Oct 2003, 08:36:02
-
How could i make a Soldier have the Power to heal other soldiers with out him being a Medic.??
-
You need a little script. When the script is activated, say by radio trigger, the fake medic moves towards the casualty. When they are a certain distance apart the both parties perform the appropriate playmove animation and the casuaty gets a setdammage 0 command.
Alternatives are to use for example the blackop medic addon unit, or a morphine script whereby each loon can heal himself once.
-
I know what you mean. I have each soldier with a built in Medi Kit in his inventory. But that only lets him heal his self. i want to make it so any of my soldiers can Heal the other guys. but not be medics. I know it can be done. :'(
-
in the soldiers cpp enter this line
attendant=1;
he will then be able to help his buddies
-
In real life you'd use the injured person's own field dressing; in Sweden it's always carried in the right thigh pocket, so you always know where to find it. Similarly, the nerve gas autoinjector is carried in the right breast pocket in the jacket, and so on.
But I agree; the inability to use a field dressing is one of the major failings of OFP.
-
I couldn't seem to get the attendant=1; to work. I must add that im using version 1.46 in this co op.