Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- filename: @fn_spawnHvt.sqf
- Author: J. Schmidt
- Coded for SOG Missions and Campaigns
- */
- params ["_hvt"];
- private _nearPlayers = [];
- waitUntil {
- sleep 1;
- _nearPlayers = allPlayers inAreaArray [ASLToAGL getPosASL _hvt, 10, 10, 0, false, 2];
- count _nearPlayers > 0;
- };
- if (_hvt == (driver vehicle _hvt)) then {
- doStop _hvt;
- sleep 1;
- _veh engineOn false;
- };
- [_hvt, true] call ace_captives_fnc_setSurrendered;
Add Comment
Please, Sign In to add comment