Jump to content

macnova1

Member
  • Content Count

    22
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About macnova1

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi sorry to bother everyone, I have been working on this mission for weeks trying all kinds of different script, right now I have a oil rig made and spawning, with 2 helos spawning and landing and blowing up cos they come in way hot, i would like them to land drop troops off then their engines turn off as they will be part reward for completing the mission on an exile server , also at one point i had the static guns being used with BIS_fnc_taskDefend now its not working so any help there would be great too, here is what i have any help would be great (i am using a streamline server to host the server if that helps) _missionRigGuns = [ ["rhsgref_ins_zsu234", [8735.68, 25196, 67.9931]], ["rhsgref_ins_ZU23", [8192.2, 25305.7, 27.6065]], ["rhsgref_ins_ZU23", [8015.43, 24929.2, 34.6462]], ["rhsgref_ins_ZU23", [8441.75, 25010.9, 109.287]], ["rhsgref_ins_zsu234",[8460.99, 25028.6, 107.33]], ["rhsgref_ins_ZU23", [8692.93, 24850.9, 25.6884]], ["rhsgref_ins_ZU23", [8778.6, 25182.4, 68.1689]], ["rhsgref_ins_ZU23", [8789.81, 25181.3, 67.9752]], ["rhsgref_ins_ZU23", [8799.1, 25180.3, 67.4169]], ["rhsgref_ins_ZU23", [8718.96, 25177.7, 73.8134]], ["rhsgref_ins_zsu234", [8735.68, 25196, 67.9931]] ]; _group1 = createGroup EAST; { _vehicle = createVehicle [(_x select 0),(_x select 1),[],0,"NONE"]; createVehicleCrew _vehicle; _vehicle setVectorUp surfaceNormal position _vehicle; { _x addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 600; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; //_killSummary = []; //_killSummary pushBack ["ENEMY FRAGGED", _amountEarned]; //[_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; _newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; _newKillerFrags = _newKillerFrags + 1; _killingPlayer setVariable ["ExileKills", _newKillerFrags]; format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach crew _vehicle; [_group1, _vehicle] call BIS_fnc_taskDefend; _vehicle addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 10000; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; _killSummary = []; _killSummary pushBack ["VEHICLE DESTROYED", _amountEarned]; [_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; //_newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; //_newKillerFrags = _newKillerFrags + 1; //_killingPlayer setVariable ["ExileKills", _newKillerFrags]; //format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach _missionVehicles; // Options. // _groupType = (configFile >> "CfgGroups" >> "West" >> "BLU_F" >> "Infantry" >> "BUS_ReconPatrol"); // CONFIG - CfgGroups entry of preset group _groupType = ["O_Soldier_SL_F", "O_Soldier_LAT_F", "O_soldier_AR_F", "O_Soldier_LAT_F", "O_soldier_AR_F", "O_Soldier_F","O_Soldier_F","O_Soldier_F","O_Soldier_SL_F", "O_Soldier_LAT_F", "O_soldier_AR_F", "O_Soldier_LAT_F", "O_soldier_AR_F", "O_Soldier_F","O_Soldier_F","O_Soldier_F"]; // ARRAY - List of classnames to spawn for reinforcements. Option instead of above. _groupType2 = ["O_Soldier_SL_F", "O_Soldier_LAT_F", "O_soldier_AR_F", "O_Soldier_LAT_F", "O_soldier_AR_F", "O_Soldier_F","O_Soldier_F","O_Soldier_F"]; _landPos = getMarkerPos "HELI3"; // Where you want them to land. _spawnPos = getMarkerPos "Heli1"; // Where they spawnfrom. _landPos2 = getMarkerPos "HELI4"; // Where you want them to land. _spawnPos2 = getMarkerPos "Heli2"; // Where they spawnfrom. // Spawn invis helipad to land on. _helipad = createVehicle ["Land_HeliPadEmpty_F", _landPos, [], 0, "NONE"]; // Spawn invis helipad to land on. _helipad2 = createVehicle ["Land_HeliPadEmpty_F", _landPos2, [], 0, "NONE"]; // Spawn helicopter and crew. _helisv = [_spawnPos, 180, "B_Heli_Transport_03_F", EAST] call BIS_fnc_spawnVehicle; _heli = _helisv select 0; _heliCrew = _helisv select 1; _heliGroup = _helisv select 2; // Spawn helicopter and crew. _helisv2 = [_spawnPos2, 180, "O_Heli_Attack_02_black_F", EAST] call BIS_fnc_spawnVehicle; _heli2 = _helisv2 select 0; _heliCrew2 = _helisv2 select 1; _heliGroup2 = _helisv2 select 2; // Spawn reinforcements and get them in the helicopter. _units = [_spawnPos, EAST, _groupType] call BIS_fnc_spawnGroup; {_x assignAsCargo _heli; _x moveInCargo _heli;} forEach units _units; // Spawn reinforcements and get them in the helicopter. _units2 = [_spawnPos2, EAST, _groupType2] call BIS_fnc_spawnGroup; {_x assignAsCargo _heli2; _x moveInCargo _heli2;} forEach units _units2; // Stuffs {_x allowFleeing 0} forEach units _units,_units2; // Waypoint to the location _wp1 = _heliGroup addWaypoint [_landPos, 0]; _wp1 setWaypointSpeed "LIMITED"; _wp1 setWaypointType "UNLOAD"; _wp1 setWaypointStatements ["true", "(vehicle this) LAND 'GET OUT';"]; _wp2 = _heliGroup2 addWaypoint [_landPos2, 0]; _wp2 setWaypointSpeed "LIMITED"; _wp2 setWaypointType "UNLOAD"; _wp2 setWaypointStatements ["true", "(vehicle this) LAND 'GET OUT';"]; // Get out! _units leaveVehicle _heli; //sleep 5; // Get out! _units2 leaveVehicle _heli2; //sleep 5; // Wait till we're out. waitUntil{sleep 1; {_x in _heli} count units _units == 0}; sleep 5; // Wait till we're out. waitUntil{sleep 1; {_x in _heli2} count units _units2 == 0}; sleep 5; // Release heli from being landed and clean up. _heli flyInHeight 0; _heli engineOn false; deleteVehicle _helipad; // Release heli from being landed and clean up. _heli2 engineOn false; _heli2 flyInHeight0; deleteVehicle _helipad; OffshoreMissionCount = 1; } else { diag_log "Offshore Mission is already spawned"; };
  2. Hi Guys here is my script for my oil rig mission, however my units do not spawn any help would be great, plus BIS_fnc_task_defend I can not get to work _missionUnits = [ ["O_Soldier_AA_F",[8647.78,25836.1,13.6213]], ["O_Soldier_TL_F",[8476.98,25885.7,33.3919]], ["O_Soldier_AA_F",[8705.49,26029.6,33.1847]], ["O_Soldier_AA_F",[8680.55,26017.5,69.7901]], ["O_Soldier_AA_F",[8659.85,26021.3,55.4151]], ["O_Soldier_AA_F",[8639.32,26022.6,59.3722]], ["O_Soldier_AA_F",[8595.7,26037.1,55.4733]], ["O_Soldier_AA_F",[8658.13,25935.9,55.3722]], ["O_Soldier_AA_F",[8599.45,25957.4,55.363]], ["O_Soldier_AA_F",[8601.74,25906,55.3731]], ["O_Soldier_AA_F",[8580.85,25913.1,55.3689]], ["O_Soldier_AA_F",[8632.35,25889.1,73.2636]], ["O_Soldier_AA_F",[8645.59,25860.1,55.3624]], ["O_Soldier_AA_F",[8581.4,25880.8,55.354]], ["O_Soldier_AA_F",[8498.83,25908,58.4823]], ["O_Soldier_AA_F",[8504.11,25922.7,55.3612]], ["O_Soldier_AA_F",[8510.81,25978.8,111.297]] ]; _group1 = createGroup EAST; _group1 setCombatMode "RED"; { _unit = _group1 createUnit [(_x select 0),(_x select 1),[],0,"NONE"]; _unit setPosWorld getPosWorld _unitj; _unit setPosASL [getPosASL _x select 0, (getPosASL _x select 1) + 100, getPosASL _x select 2]; _unit allowFleeing 0; if ("ToolKit" in items _unit) then { _unit removeItems "ToolKit"; }; if ("Exile_Item_Knife" in magazines _unit) then { _unit removeMagazines "Exile_Item_Knife"; }; if ("Medikit" in items _unit) then { _unit removeItems "Medikit"; }; _x addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 600; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; _killSummary = []; _killSummary pushBack ["TANGO DOWN", _amountEarned]; [_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; _newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; _newKillerFrags = _newKillerFrags + 1; _killingPlayer setVariable ["ExileKills", _newKillerFrags]; format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach _missionUnits; [_group1, _unit] call BIS_fnc_taskDefend;
  3. Sorry so i have this script, random tanks spawn once they are killed and crew are killed i would like to have players get a bonus for completing the mission if ((TankMissionCount < 1) && ((random 1) > .5)) then { TankMissionLocation = [[14988.9,14495.8,0],0,35000,1,0,5,0] call BIS_fnc_findSafePos; _marker1 = createMarker ["TankMissionMarker", TankMissionLocation]; _marker1 setMarkerType "ExileMissionModerateIcon"; _marker1 setMarkerText "Tank Mission"; _marker1 setMarkerPos TankMissionLocation; _missionVehicles = [ ["O_MBT_02_cannon_F"], ["O_MBT_02_cannon_F"] ]; _group1 = createGroup EAST; _group1 setCombatMode "RED"; { TankMissionLocationVehicle = [TankMissionLocation,3,20,1,0,5,0] call BIS_fnc_findSafePos; _vehicle = createVehicle [(_x select 0),TankMissionLocationVehicle,[],50,"NONE"]; _vehicle setPos [(TankMissionLocationVehicle select 0),(TankMissionLocationVehicle select 1), (TankMissionLocationVehicle select 2)]; _vehicle setVectorUp surfaceNormal position _vehicle; createVehicleCrew _vehicle; { [_x] joinSilent _group1; if ("ToolKit" in items _x) then { _x removeItems "ToolKit"; }; if ("Exile_Item_Knife" in magazines _x) then { _x removeMagazines "Exile_Item_Knife"; }; if ("Medikit" in items _x) then { _x removeItems "Medikit"; }; _x addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 600; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; //_killSummary = []; //_killSummary pushBack ["ENEMY FRAGGED", _amountEarned]; //[_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; _newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; _newKillerFrags = _newKillerFrags + 1; _killingPlayer setVariable ["ExileKills", _newKillerFrags]; format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach crew _vehicle; [_group1,TankMissionLocationVehicle,500] call BIS_fnc_taskPatrol; _vehicle addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 50000; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; _killSummary = []; _killSummary pushBack ["VEHICLE DESTROYED", _amountEarned]; [_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; //_newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; //_newKillerFrags = _newKillerFrags + 1; //_killingPlayer setVariable ["ExileKills", _newKillerFrags]; //format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach _missionVehicles; _group1 setBehaviour "AWARE"; _group1 setSpeedMode "FULL";
  4. Hi Guys, I am stuck on how to go about making a reward for completing a mission its on a MP hosted server , i would like to have a bonus respect and money payout to all players who are in the area when the mission is completed ...but i am totally lost on how to script that, I am totally NOOB at scripting I looked into eventhandlers but not sure if i am on the right lines any help would be greatly appreciated
  5. worked like a charm thanks kauppapekka for the massive help sorry i was a pain!!!
  6. thanks i appreciate the help man i will start looking
  7. this is exactly what i did and nothing happen tank still just sits there, i appreciate the help private ["_pos","_missionUnits","_group1","_missionTanks","_tanksAi","_unit","_marker1"]; if ((TankMissionCount < 1) && ((random 1) > .5)) then { _pos = [[14988.9,14495.8,0],0,35000,1,0,5,0] call BIS_fnc_findSafePos; _marker1 = createMarker ["Marker1", _pos]; _marker1 setMarkerType "ExileMissionModerateIcon"; _marker1 setMarkerText "Tank Mission"; _marker1 setMarkerPos _pos; _missionVehicles = [ ["O_MBT_02_cannon_F"] ]; _group1 = createGroup EAST; _group1 setCombatMode "RED"; { _posVehicle = [_pos,3,20,1,0,5,0] call BIS_fnc_findSafePos; _vehicle = createVehicle [(_x select 0),_posVehicle,[],50,"NONE"]; _vehicle setPos [(_posVehicle select 0),(_posVehicle select 1), (_posVehicle select 2)]; _vehicle setVectorUp surfaceNormal position _vehicle; createVehicleCrew _vehicle; { [_x] joinSilent _group1; if ("ToolKit" in items _x) then { _x removeItems "ToolKit"; }; if ("Exile_Item_Knife" in magazines _x) then { _x removeMagazines "Exile_Item_Knife"; }; if ("Medikit" in items _x) then { _x removeItems "Medikit"; }; crew _vehicle addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 600; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; //_killSummary = []; //_killSummary pushBack ["ENEMY FRAGGED", _amountEarned]; //[_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; _newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; _newKillerFrags = _newKillerFrags + 1; _killingPlayer setVariable ["ExileKills", _newKillerFrags]; format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach crew _vehicle; [_group1,_posVehicle,100] call BIS_fnc_taskPatrol; _vehicle addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 10000; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; _killSummary = []; _killSummary pushBack ["VEHICLE DESTROYED", _amountEarned]; [_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; //_newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; //_newKillerFrags = _newKillerFrags + 1; //_killingPlayer setVariable ["ExileKills", _newKillerFrags]; //format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach _missionVehicles; TankMissionCount = 1; } else { diag_log "Tank Mission is already spawned"; };
  8. this is the whole script, i am using steamline to host the server , I get no errors in RPT , private ["_pos","_missionUnits","_group1","_missionTanks","_tanksAi","_unit","_marker1"]; if ((TankMissionCount < 1) && ((random 1) > .5)) then { _pos = [[14988.9,14495.8,0],0,35000,1,0,5,0] call BIS_fnc_findSafePos; _marker1 = createMarker ["Marker1", _pos]; _marker1 setMarkerType "ExileMissionModerateIcon"; _marker1 setMarkerText "Tank Mission"; _marker1 setMarkerPos _pos; _missionVehicles = [ ["O_MBT_02_cannon_F"] ]; _group1 = createGroup EAST; _group1 setCombatMode "RED"; { _posVehicle = [_pos,3,20,1,0,5,0] call BIS_fnc_findSafePos; _vehicle = createVehicle [(_x select 0),_posVehicle,[],50,"NONE"]; _vehicle setPos [(_posVehicle select 0),(_posVehicle select 1), (_posVehicle select 2)]; _vehicle setVectorUp surfaceNormal position _vehicle; createVehicleCrew _vehicle; [group driver _vehicle, _posVehicle,100] call BIS_fnc_taskPatrol; { [_x] joinSilent _group1; if ("ToolKit" in items _x) then { _x removeItems "ToolKit"; }; if ("Exile_Item_Knife" in magazines _x) then { _x removeMagazines "Exile_Item_Knife"; }; if ("Medikit" in items _x) then { _x removeItems "Medikit"; }; crew _vehicle addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 600; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; //_killSummary = []; //_killSummary pushBack ["ENEMY FRAGGED", _amountEarned]; //[_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; _newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; _newKillerFrags = _newKillerFrags + 1; _killingPlayer setVariable ["ExileKills", _newKillerFrags]; format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach crew _vehicle; _vehicle addMPEventHandler ["MPKilled", { private ["_killer","_currentRespect","_amountEarned","_newRespect","_killSummary","_newKillerFrags"]; _killed = _this select 0; _killer = _this select 2; _killingPlayer = _killer call ExileServer_util_getFragKiller; Event_ALLAI_SimulatedUnits = Event_ALLAI_SimulatedUnits - [_killed]; _currentRespect = _killingPlayer getVariable ["ExileScore", 0]; _amountEarned = 10000; _newRespect = _currentRespect + _amountEarned; _killingPlayer setVariable ["ExileScore", _newRespect]; _killSummary = []; _killSummary pushBack ["VEHICLE DESTROYED", _amountEarned]; [_killingPlayer, "showFragRequest", [_killSummary]] call ExileServer_system_network_send_to; //_newKillerFrags = _killingPlayer getVariable ["ExileKills", 0]; //_newKillerFrags = _newKillerFrags + 1; //_killingPlayer setVariable ["ExileKills", _newKillerFrags]; //format["addAccountKill:%1", getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; format["setAccountScore:%1:%2", _newRespect, getPlayerUID _killingPlayer] call ExileServer_system_database_query_fireAndForget; _killingPlayer call ExileServer_object_player_sendStatsUpdate; } ]; } forEach _missionVehicles; TankMissionCount = 1; } else { diag_log "Tank Mission is already spawned";
  9. fn_quicksilver thanks but that never worked either tank just sits there cmd and gnr and driver are top side but vehicle does not move no idea what im doing wrong...should i make another WP? with that cmd in it
  10. if ((TankMissionCount < 1) && ((random 1) > .5)) then { _pos = [[14988.9,14495.8,0],0,35000,1,0,5,0] call BIS_fnc_findSafePos; _marker1 = createMarker ["Marker1", _pos]; _marker1 setMarkerType "ExileMissionModerateIcon"; _marker1 setMarkerText "Tank Mission"; _marker1 setMarkerPos _pos; _missionVehicles = [ ["O_MBT_02_cannon_F"] ]; _group1 = createGroup EAST; _group1 setCombatMode "RED"; { _posVehicle = [_pos,3,20,1,0,5,0] call BIS_fnc_findSafePos; _vehicle = createVehicle [(_x select 0),_posVehicle,[],50,"NONE"]; _vehicle setPos [(_posVehicle select 0),(_posVehicle select 1), (_posVehicle select 2)]; _vehicle setVectorUp surfaceNormal position _vehicle; createVehicleCrew _vehicle; [group Crew _vehicle, _pos,100] call BIS_fnc_taskPatrol; clearMagazineCargoGlobal _vehicle; clearWeaponCargoGlobal _vehicle; clearItemCargoGlobal _vehicle;
  11. Hey kauppapekka tried, still the tank just sits there , the crew however do pop out the turret, do i have to create another waypoint Sorry to bother you _posVehicle = [_pos,3,20,1,0,5,0] call BIS_fnc_findSafePos; _vehicle = createVehicle [(_x select 0),_posVehicle,[],50,"NONE"]; _vehicle setPos [(_posVehicle select 0),(_posVehicle select 1), (_posVehicle select 2)]; _vehicle setVectorUp surfaceNormal position _vehicle; createVehicleCrew _vehicle; [group driver _vehicle, _posVehicle,100] call BIS_fnc_taskPatrol;
  12. Thank you for the quick reply i will give it a try, could i ask what iam doing wrong for this please, ///island units ////// _infantryUnit = [ ["O_Soldier_TL_F",[8006.96,24935.3,0.0320721]], ["O_Soldier_AA_F",[7998.11,24942.4,0.0574512]], ["O_Soldier_AA_F",[7993.26,24933.6,0.233511]], ["O_Soldier_AA_F",[7986.47,24931.7,0.0890179]], ["O_Soldier_AA_F",[7987.41,24943.5,-4.3869e-005]], ["O_Soldier_AA_F",[8543.31,25041.5,0.126152]], ["O_Soldier_TL_F",[8538.26,25036.5,0.0498581]], ["O_Soldier_AA_F",[8533.31,25041.6,0.242905]], ["O_Soldier_AA_F",[8528.36,25046.6,0.266487]], ["O_Soldier_AA_F",[8530.85,25032.8,0.266968]], ["O_Soldier_TL_F",[8807.2,25176.7,0.424911]], ["O_Soldier_AA_F",[8809.42,25183.2,1.18515]], ["O_Soldier_AA_F",[8811.65,25190.1,0.767685]], ["O_Soldier_AA_F",[8813.91,25174.5,0.841133]] ]; _group1 = createGroup EAST; _group1 setCombatMode "YELLOW"; { _crew1 = creategroup EAST; _airframe1 = [getMarkerPos "Marker1", 140, "B_Heli_Transport_03_black_F", _crew1] call BIS_fnc_spawnVehicle; _wp1 = _crew1 addWayPoint [(getMarkerPos "Marker5"), 0]; _wp1 setWayPointType "TR UNLOAD"; _wp1 setWayPointSpeed "LIMITED"; _wp1 setWayPointStatements ["this land 'land'"]; _wp2 = _crew1 addWayPoint [(getmarkerpos "Marker3"), 0]; _wp2 setWayPointType "MOVE"; _wp2 setWayPointSpeed "LIMITED"; _wp3 = _crew1 addWayPoint [(getMarkerpos "Marker1"), 0]; _wp3 setWayPointType "MOVE"; _wp3 setWayPointSpeed "LIMITED"; _wp3 setWayPointStatements ["true", "{deleteVehicle _x;} foreach thisList + [vehicle this];"]; _mygroup = [getMarkerPos "Marker1", EAST, 16] call BIS_fnc_spawnGroup; _group1 = _mygroup addWayPoint [getMarkerPos "Marker4",0]; _group1 setWayPointType "Move"; _group1 setWaypointFormation "LINE"; _unit = _group1 createUnit [(_x select 0),(_x select 1),[],0,"FORM"]; [_unit, getpos _wp1] call BIS_fnc_taskDefend; _unit allowFleeing 0; i am trying to get units to spawn into the helicopter in the array that did not work , i tried the SPAWGroup that worked but never unloaded and also taskdefend never worked sorry again I appreciate that help
  13. Hi Guys I have a random Tank mission on my new server, and i am sorry for asking this but i have read alllllll the things about BIS_fnc_taskpatrrol and Defend but im just not getting it could some one please tell me where i am suppose to but it exactly in my script I have tried waypoints and everything to no success , the mission spawns however tank just sits there _missionVehicles = [ ["O_MBT_02_cannon_F"] ]; _group1 = createGroup EAST; _group1 setCombatMode "RED"; { _posVehicle = [_pos,3,20,1,0,5,0] call BIS_fnc_findSafePos; _vehicle = createVehicle [(_x select 0),_posVehicle,[],50,"NONE"]; _vehicle setPos [(_posVehicle select 0),(_posVehicle select 1), (_posVehicle select 2)]; [_vehicle, _posVehicle,100] call bis_fnc_taskPatrol; _vehicle setVectorUp surfaceNormal position _vehicle; createVehicleCrew _vehicle;
  14. HI guys I am totally NOOB to scripting, and im not doing very well, i have my missions setup spawning in no problems bar 2 how to make the mission give a bonus to the player or players in group or area who completed it like an eventhandler and second how do i use one script to clear missions from my server once they are completed so they can re start ....while i was searching the internet i came accros "nearentities" which brought me here any help would be greatly appreciated
  15. macnova1

    Creating Markers Not Working

    Hi 7erra that did not work either, im just calling it through infistar console for now to see if it works, DMS is a mod that has missions all the script is already written
×