-
Notifications
You must be signed in to change notification settings - Fork 16
Hostage
TheLocalPub edited this page Mar 22, 2023
·
1 revision
This module allows mission makers to easily manage extractions for hostages.
- 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_setHostagehostage - 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
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);
};