Hostage - Global-Conflicts-ArmA/Olsen-Framework-Arma-3 GitHub Wiki
Description
This module allows mission makers to easily manage extractions for hostages.
Usage
- Go to modules>modules.sqf and enable the hostage module.
- Place down and scale an area marker, give it a variable name, this will represent the rescue zone for the hostage(s).
- Place down your hostage(s) and give it a variable name.
- Place the following line in the hostage(s) init.
[hostage,"ExtractZone", false, false ,false] call HOST_fnc_setHostage
hostage
- This is the variable name of the hostage.
ExtractZone
- This is the variable name of the extract zone the hostage can extract from.
false
- Can the hostage join your group, visa versa. Either true
or false
.
false
- Is the hostage set to "careless" mode. Either true
or false
.
true
- Will the hostage sit down once reaching the extraction zone. Either true
or false
End condition example
Hostage rescued
if (hostage1 call EFUNC(HOST,IsRescued) && {hostage2 call EFUNC(HOST,IsRescued)}) exitWith {
"Hostages Rescued" call FUNC(EndMission);
};
Hostage killed
if (!([hostage1] call FUNC(isAlive)) && {!([hostage2] call FUNC(isAlive))}) exitWith {
"Hostages Killed" call FUNC(EndMission);
};