OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NA556 on 11 Feb 2005, 20:48:06

Title: Presence of a sqaud
Post by: NA556 on 11 Feb 2005, 20:48:06
I want to know how to set a squad so if the leader isnt present (using the 'probability of presence' slider) then the entire squad is not present. cheers for any help.

Title: Re:Presence of a sqaud
Post by: nominesine on 11 Feb 2005, 20:51:34
name leader a1

put his probability of presence to 50%

in the condition of presence line of every soldier in his group you write:

alive a1
Title: Re:Presence of a sqaud
Post by: Tyger on 12 Feb 2005, 00:52:14
for a large group that could be tiedious, so you could also make the group leader and set it's probability to whatever, and in its init line put
Code: [Select]
squad1 = group this
then make a trigger and in the condition line put
Code: [Select]
alive [i]squadleader's name[/i] and in the activation line put
Code: [Select]
{deleteVehicle _x} forEach units leader squad1
take your pick :)