Jump to content

Casio91Fin

Member
  • Content Count

    140
  • Joined

  • Last visited

  • Medals

Everything posted by Casio91Fin

  1. Hey. Does anyone have an Inventory weight script. The only thing I've found is this, but I don't get it to work
  2. Does anyone have this "Infantry Occupy House" script and possibly added "JBOY UP & Down" to it? command forms, however, would be like this what I was looking for [Group this, Postion X, radius] ...... simple if possible
  3. Casio91Fin

    player inventory weight script

    When a player opens their own inventory then somewhere in the corner of the inventory would show how much stuff the player is carrying "Kg"
  4. Casio91Fin

    Need Occupation script

    @Fr3eMan thanks for that but it wasn't quite what i was looking for.
  5. The purpose should be to find the "TRANSMITTER" tower on the map and create a task from it. (23 pieces Altis) and of course to choose randomly. nearestTerrainObjects
  6. Casio91Fin

    Find object in map

    thx @Harzach
  7. How could I make this work? _AI_Leader = New_AI_Group createUnit [JalkavakiJohtajat select floor (random count JalkavakiJohtajat), _AI_Spawn_Pos, [], 0, "NONE"]; if (_AI_Leader == "I_officer_F") then {_AI_Leader setRank "LIEUTENANT"; [_AI_Leader, "LIEUTENANT"] call BIS_fnc_setUnitInsignia;}; else they are. _AI_Leader setRank "SERGEANT"; [_AI_Leader, "SERGEANT"] call BIS_fnc_setUnitInsignia;
  8. Casio91Fin

    add Insignia to AI

    i figured out what was the problem if (typeOf _AI_Leader == "I_officer_F") then {_AI_Leader setRank "LIEUTENANT"; [_AI_Leader, "LIEUTENANT"] call BIS_fnc_setUnitInsignia;} else {_AI_Leader setRank "SERGEANT"; [_AI_Leader, "SERGEANT"] call BIS_fnc_setUnitInsignia;};
  9. Is it possible for the AI team to randomly select their own mission? I'm feeling like a terribly long to write the script, because the AI group is created, however, in many cases again. What I’m looking for here AI randomly chooses a task for himself. a list of possibilities for what the AI could do 1. [New_AI_Group_3, _pos_1, 500] call lambs_wp_fnc_taskPatrol; 2.[New_AI_Group_3, _pos_1, 50] call lambs_wp_fnc_taskCamp; 3.[New_AI_Group_3, _pos_1, 50] call lambs_wp_fnc_taskGarrison; 4.[New_AI_Group_3, _pos_1, 50] spawn lambs_wp_fnc_taskCQB; 5.[New_AI_Group_3, _pos_1] call BIS_fnc_taskDefend; 6.[New_AI_Group_3, _pos_1, 1000] call BIS_fnc_taskPatrol; //Jalkaväki for "_x" from 0 to (1 * Multiplier) do { New_AI_Group_3 = createGroup [independent, true]; _AI_Spawn_Pos = [_Pos_1, 40, 160, 10 + random 15, 0, 20, 0] call BIS_fnc_findSafePos; _AI_Leader = New_AI_Group_3 createUnit [JalkavakiJohtajat select floor (random count JalkavakiJohtajat), _AI_Spawn_Pos, [], 0, "NONE"]; _AI_Leader setRank "SERGEANT"; [_AI_Leader, "SERGEANT"] call BIS_fnc_setUnitInsignia; _AI_Leader allowFleeing 0; _AI_Leader setSkill (0.75 + random 0.25); _AI_Leader enableAIFeature ["AUTOTARGET", false]; _AI_Leader enableAIFeature ["RADIOPROTOCOL", true]; _AI_Leader enableAIFeature ["COVER", true]; _AI_Leader enableAIFeature ["PATH", true]; sleep 2; for "_x" from 0 to (2 + (floor random 2 + 3 * Multiplier)) do { _NewAI = New_AI_Group_3 createUnit [JalkavakiSotilaat select floor (random count JalkavakiSotilaat), _AI_Spawn_Pos, [], 0 ,"NONE"]; _AINewRank = selectRandom ["PRIVATE","PRIVATE","PRIVATE","CORPORAL"]; _NewAI setRank _AINewRank; [_NewAI, _AINewRank] call BIS_fnc_setUnitInsignia; _NewAI allowFleeing 0; _NewAI setSkill (0.45 + random 0.55); _NewAI enableAIFeature ["AUTOTARGET", false]; _NewAI enableAIFeature ["RADIOPROTOCOL", true]; _NewAI enableAIFeature ["PATH", true]; _NewAI enableAIFeature ["SUPPRESSION", true]; }; sleep .5; New_AI_Group_3 setBehaviour "AWARE"; New_AI_Group_3 setCombatMode "RED"; [New_AI_Group_3, _pos_1, random 100 + 150] spawn lambs_wp_fnc_taskCQB; };
  10. Casio91Fin

    Random task for AI

    @UnDeaD. i am going to test and yes @mr_centipede is right it must be 6. Thank you, the script is working very well
  11. Casio91Fin

    Help with Custom Loadout

    I don't know if this helps. _magazinePrimary = getArray (configFile >> "CfgWeapons" >> _weaponPrimary >> "magazines"); to _magazinePrimary = getArray (configFile / "CfgWeapons" / _weaponPrimary / "magazines"); Fixed [_x, (selectRandom [ "arifle_MX_F","arifle_Katiba_F","srifle_DMR_01_F","SMG_01_F","arifle_MX_khk_F","arifle_AK12_F","arifle_AKM_F","srifle_DMR_07_blk_F","LMG_Mk200_F","LMG_Zafir_F"]),3] call BIS_fnc_addWeapon;
  12. My coop idea is how players would get fire support for their missions. If there are more than 3 players in a player group then group leader could get a fire support command. (Radio commands 1. artillery, 2. air support, 3.missile attack and something else ) Is it possible to do?
  13. @pierremgi I'm going to test today - Works well. I tested with artificial intelligence and it works flawlessly.
  14. Hi. How should the Defense module be done correctly so that it works properly? I’ve watched videos and read, but I can’t get it to work. And somewhere I’ve read that it doesn’t work anymore is this claim true? If anyone could make it work and tell me how to make it work.
  15. Really good work. Is it possible for the earth to be a map and not the soil material?
  16. i think is best option: I don’t want infantry to swim in the ocean, but for some reason some spawn in the ocean. (better explained)
  17. Can you fix few thing and add? 1. Enemies do not spawn in the water, applies to all inf, light veh, heavy veh, static weapon. 2. light vehicles would also have infantry. (80% chance that there is an infantry ride)
  18. Casio91Fin

    Names of different cities

    😎 Works like a dream
  19. Hey Question? how to make these three work so that there is no need to swap places with each other. _TownName = text nearestLocation [_Mission_Pos, "NameVillage"]; <<-------/NameCity / NameCityCapital / NameVillage [west, [localize "STR_CAS_Mission_Name_4", "Suomi Painaa Tehtävät"], [format [localize "STR_CAS_Mission_Text_4", _TownName], localize "STR_CAS_Mission_Name_4", ""], _Mission_Pos, true, 1, true, "danger", true] call BIS_fnc_taskCreate; [localize "STR_CAS_Mission_Name_4", "ASSIGNED", true] spawn BIS_fnc_taskSetState; SP_Mission_Pos_Residential =
  20. Casio91Fin

    Names of different cities

    now did not give an error, but also no name
  21. Casio91Fin

    Names of different cities

    _TownName = text (nearestLocations [_MissionPos, ["NameCity", "NameCityCapital", "NameVillage"], 200] #0); = "Any"? mission text ------------- (00007FF7B08441D0) ------------------- - -- - - - -- -
  22. Casio91Fin

    Names of different cities

    I do not get to work, even though I am very close to its success
  23. Casio91Fin

    Names of different cities

    Thanks for this, but it only gives me the coordinates. No village or city names. _TownName = nearestLocations [_Mission_Pos, ["NameCity", "NameCityCapital", "NameVillage"], 200]; //had to delete "text" when an error message was received why? mission text ......... ..... ..... ...... ([location namecity at 9188, 15948] = Agios Dionysios ) ..................
  24. Hey. When I tried to try this arma 3 I got the message "Error when loading the scenario!" can you fix this? demo mission
  25. How to add the prize if a player kills 10 AIs and the player gets one respawn ticket. I already have this kind of floor plan initServer.sqf: addMissionEventHandler ["EntityKilled", { params ["_killed", "_killer", "_instigator"]; if ((_killed isKindOf "Man") and (!isPlayer _killed)) then { [_killer, 100] call HALs_money_fnc_addFunds; removeAllWeapons _killed; removeAllItems _killed; removeAllAssignedItems _killed; deleteVehicle (nearestObject [_killed, "WeaponHolderSimulated"]); }; }];
×