OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flubby on 08 May 2005, 20:23:40
-
Hi Guys,
Anyone know of a reinforcement script that will let you set the minimum number alive in your group, if it drops below that number then units are automatically nicked from another none active group to reinforce your own group, once that groups supply of men have been used up then thats the end of any reinforcments.
I found a couple of scripts but they work on Radio commands, I am looking for something that is more automatic.
Cheers
-
This should work. Make a trigger (size/properties don't matter). Set it to activate repeatedly.
Condition: ({alive _x} count units GROUP_TO_REINFORCE_TO) < 5
On activation: [leader GROUP_TO_REINFORCE_FROM] join GROUP_TO_REINFORCE_TO