Jump to content

ArmaMan360

Member
  • Content Count

    464
  • Joined

  • Last visited

  • Medals

Community Reputation

94 Excellent

3 Followers

About ArmaMan360

  • Rank
    Gunnery Sergeant

Profile Information

  • Gender
    Male
  • Location
    ~ Shacks of the poor.. Hearts of the oppressed ~

Recent Profile Visitors

1757 profile views
  1. By the way Larrow, I am using this inside a "for "_i" from...." line and towards the end there is a sleep of .6 seconds before the next loop. However it's giving me a "Generic error in expression." message. This is the snippet from the sqf: for "_i" from 1 to _numFootPatrols do { _configGrp = _footUnits call BIS_fnc_selectRandom; _rndPos = [_pos, 1, (_area select 0), 2, 0, 30, 0, [],[_pos]] call BIS_fnc_findSafePos; _grp = [_rndPos, _center, (configfile >> "CfgGroups" >> "East" >> "OPF_F" >> "Infantry" >> (_configGrp))] call BIS_fnc_spawnGroup; [_grp, getMarkerPos "m1"] call BIS_fnc_taskAttack; {_x enableStamina false;} forEach units _grp; sleep 0.5; _grp setVariable[ "callBack", [ 1, 0] ]; //fnc_patrols params { _x addEventHandler [ "Killed", {params[ "_killed" ]; if ( { alive _x }count units group _killed isEqualTo 0 ) then { _callBack = group _killed getVariable "callBack"; deleteGroup group _killed; _callBack call fnc_patrols2; }; }]; }forEach units _grp; sleep 0.6; // generic error here }; Thanks
  2. Thank you very much Larrow. I know this is a pretty old thread, but could you please show me the way to somehow incorporate safepos in this to safely spawn vehicles within a marker at random spots? Oh and btw, I am using your script for the following spawn function and its causing a tremendous amount of lag. What gives? The call line is: [20,3,2,0,0] spawn fnc_patrols; fnc_patrols = { _numFootPatrols = _this select 0; _numVehPatrols = _this select 1; _numArmorPatrols = _this select 2; _numMechPatrols = _this select 3; _numAirPatrols = _this select 4; _footUnits = ["BUS_InfSentry", "BUS_InfTeam", "BUS_InfTeam_AT", "BUS_InfSquad","BUS_SniperTeam"]; _vehUnits = ["B_MRAP_01_hmg_F","B_MRAP_01_gmg_F"]; _armorUnits = ["B_MBT_01_cannon_F","B_MBT_01_arty_F","B_APC_Tracked_01_rcws_F","B_APC_Tracked_01_CRV_F"]; _mechUnits = ["B_APC_Wheeled_01_cannon_F","B_APC_Tracked_01_AA_F"]; _airUnits = ["B_Heli_Light_01_armed_F","B_Heli_Transport_01_camo_F","B_Heli_Attack_01_F"]; _center = createCenter WEST; _mrk = "m1"; _pos = getMarkerpos _mrk; _area = getMarkerSize _mrk; for "_i" from 1 to _numFootPatrols do { _configGrp = _footUnits call BIS_fnc_selectRandom; _nul = _area pushBack markerDir _mrk; _nul = _area pushBack ( markerShape _mrk isEqualTo "Rectangle" ); _rndPos = [ _mrk, _area ] call BIS_fnc_randomPosTrigger; //_rndPos = [_pos, 1, (_area select 0), 2, 0, 30, 0, [],[_pos]] call BIS_fnc_findSafePos; _grp = [_rndPos, _center, (configfile >> "CfgGroups" >> "West" >> "BLU_F" >> "Infantry" >> (_configGrp))] call BIS_fnc_spawnGroup; [_grp, getMarkerPos "m2"] call BIS_fnc_taskAttack; {_x enableStamina false;} forEach units _grp; sleep 0.5; [_grp,_rndPos] spawn { _gp = _this select 0; _rndPos = _this select 1; while {true} do { sleep 6; if (({(alive _x)} count (units _gp)) < 1) exitWith { deleteGroup _gp; [1, 0, 0, 0, 0] call fnc_patrols }; }; }; sleep 0.05; }; for "_i" from 1 to _numVehPatrols do { _nul = _area pushBack markerDir _mrk; _nul = _area pushBack ( markerShape _mrk isEqualTo "Rectangle" ); _rndPos = [ _mrk, _area ] call BIS_fnc_randomPosTrigger; //_rndPos = [_pos, 1, (_area select 0), 2, 0, 30, 0, [],[_pos]] call BIS_fnc_findSafePos; _configGrp = selectRandom _vehUnits; _patrolVeh = createVehicle [_configGrp, _rndPos, [], 0, "NONE"]; createVehicleCrew _patrolVeh; _group = group _patrolVeh; [_group, _pos] call BIS_fnc_taskAttack; sleep 0.5; [_group,_rndPos] spawn { _gp = _this select 0; _rndPos = _this select 1; while {true} do { sleep 6; if (({(alive _x)} count (units _gp)) < 1) exitWith { deleteGroup _gp; [0, 1, 0, 0, 0] call fnc_patrols }; }; }; sleep 0.5; }; for "_i" from 1 to _numArmorPatrols do { _nul = _area pushBack markerDir _mrk; _nul = _area pushBack ( markerShape _mrk isEqualTo "Rectangle" ); _rndPos = [ _mrk, _area ] call BIS_fnc_randomPosTrigger; //_rndPos = [_pos, 1, (_area select 0), 2, 0, 30, 0, [],[_pos]] call BIS_fnc_findSafePos; _configGrp = selectRandom _armorUnits; _patrolVeh = createVehicle [_configGrp, _rndPos, [], 0, "NONE"]; createVehicleCrew _patrolVeh; _group = group _patrolVeh; [_group, _pos] call BIS_fnc_taskAttack; sleep 0.5; [_group,_rndPos] spawn { _gp = _this select 0; _rndPos = _this select 1; while {true} do { sleep 6; if (({(alive _x)} count (units _gp)) < 1) exitWith { deleteGroup _gp; [0, 0, 1, 0, 0] call fnc_patrols }; }; }; sleep 0.5; }; }; Thanks again. :)
  3. ArmaMan360

    [SP Wasteland] Inteqam In The Wildlands

    UPDATE: Jungle survival is BACK!! - The mission was broke. Now its working all well Thank you Rydygier, without your help this was impossible :D
  4. ArmaMan360

    Ravage

    Haleks, the CBA link in your OP is mistakenly linked to Ravage's first page :)
  5. Thanks R3vo.. How have you been mate? :D
  6. I am back to Arma after a long break and would like to know how to change the default enemy side with the combat patrol module. Thanks.
  7. Hey guys.. Thanks. No intros involved. However I have solved this after help from the amazing community member Tajin. So apparently there was something wrong with the way the mission pbo was packed by the game. So I used Eliteness and converted the mission folder into a pbo and it worked ! Hope it helps someone :)
  8. To be more specific, I have different files for spawning enemies, empty chopper, tank, and cache drops along with their respective markers. Everything works in the editor. But when I play it via scenarios, no enemies spawn and none of the empty chopper, tank etc spawn. I can be sure as their marker is also not their. Here is the mission file.. https://ufile.io/vfo36
  9. Ok so I have made a mission where it plays perfectly well in the editor, so I export it to the SP Scenarios. But when I play it in via the scenarios screen, the mission files don't seem to execute. its a very weird problem. Any ideas?
  10. ArmaMan360

    help with charge script

    Probably removing those disable lines from the top should be a start? And I am assuming that the AI are from different sides so they should automatically chose a random target. Right?
  11. Guys I could use some love here... No homo..
  12. ArmaMan360

    HETMAN - Artificial Leader

    Helo Rydy.. I am elated to see you are working on HAL... As much as I am excited to test it, I am also equally involved with my job and other freelance work. I wish to fire up my HAL missions again asap :D Thank you..
  13. I am looking for a way to whitelist categories rather than individual items. Example, allow only clothes and other items like binoculars, NVG, Compass to be available in the virtual arsenal and not the weapons. How to?
×