Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onSideMissionDefenderCreate =
- {
- [east,[]]
- };
- smEnemyBaseFound =
- {
- {
- _x params SIDEMIS_PARAMS;
- // Todo was this enemy base?
- // if(_misSide != baseside) then
- // systemchat format ["hmmm %1 %2",_misConf, (missionconfigfile >> "SideMissions" >> "ScoutArea") ];
- if((_misConf) == (missionconfigfile >> "SideMissions" >> "ScoutArea")) then
- {
- _fn = getText (_misConf >> "smOnScoutComplete");
- if(_fn != "") then
- {
- call compile _fn;
- };
- };
- } foreach runningSideMissions;
- };
- // modify this function for reward on completing mission
- onSideMissionComplete =
- {
- params ["_misConf","_reward","_completers","_helpers"];
- {
- // give money/XP to _x (player)
- [500,0] call HG_fnc_addOrSubXP;
- [500, 0] call HG_fnc_addOrSubCash;
- } foreach _completers;
-
- player globalchat format ["--> %1 - %2 - %3 - %4",configname _misConf, _completers, _helpers, floor time ];
- };
- onSideMissionEnded =
- {
- params ["_side"];
- _misRunning = _side call smGetRunningMissionsForSide;
- };
- // Modify this function for the destination of the captives
- isBaseNear =
- {
- params ["_side","_pos"];
- _pos distance2D heli < 5
- };
- [] spawn
- {
- while { true } do
- {
- if([playerside,getpos player] call isBaseNear) then
- {
- hint "base found";
- call smEnemyBaseFound;
- };
- sleep 1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement