Jump to content

sarogahtyp

Member
  • Content Count

    2494
  • Joined

  • Last visited

  • Medals

Everything posted by sarogahtyp

  1. sarogahtyp

    Unit play and capture

    cant help without complete code... EDIT: use https://pastebin.com/ then
  2. sarogahtyp

    Unit play and capture

    just copy n paste the complete file path.sqf in a spoiler pls...
  3. I guess you ve to use somethings like https://community.bistudio.com/wiki/addMagazine and/or https://community.bistudio.com/wiki/removeMagazine
  4. sarogahtyp

    custom vehicle script

    That script is all but good for ur purpose. Try to understand the script i showed above and try to get it running. Ill not do the whole work for u. I just spent some free time at work to show u a possible way. If u do not understand something just ask and u ll get an answer. As I told ill not do the whole work... but maybe another one bites the dust 😉
  5. sarogahtyp

    custom vehicle script

    short'n'dirty: CasioVehicleInit = { clearItemCargo _this; clearMagazineCargo _this; clearWeaponCargo _this; _this setVehicleAmmo 0; _this setFuel 0.5; }; [] spawn { _vehicleTypes = ["B_MRAP_01_F", "B_MRAP_01_gmg_F", "B_MRAP_01_hmg_F"]; CasioBreakLoop = false; while {!CasioBreakLoop} do { _newVecs = vehicles select { _vec = _x; ( isNil {_vec getVariable "spawned"} && _vehicleTypes findIf {(typeOf _vec) isEqualTo _x} > -1 ) }; { _x call CasioVehicleInit; _x setVariable ["spawned", true]; } count _newVecs; sleep 10; }; }; not tested. could be used in an init file. may need some tweaks if used in multiplayer. endless while loop can be stopped (if needed) by setting CasioBreakLoop to true anywhere ...
  6. sarogahtyp

    Script to save backpack and stuff inside

    no script necessary. engine commands available: https://community.bistudio.com/wiki/getUnitLoadout https://community.bistudio.com/wiki/setUnitLoadout
  7. you could try to use: https://community.bistudio.com/wiki/setObjectTextureGlobal maybe you are able to set some darker textures to get the effect. I guess you are not able to set a darker lighting for an area...
  8. sarogahtyp

    Getting the terrain cell size?

    did u try this? https://community.bistudio.com/wiki/BIS_fnc_mapGridSize
  9. sarogahtyp

    Getting the terrain cell size?

    https://community.bistudio.com/wiki/Arma_3_CfgWorlds_Config_Reference#landGrid
  10. sarogahtyp

    Convoy

    You have to set the expression of the last waypoint: https://community.bistudio.com/wiki/setWaypointStatements that waypoint should find a suitable position (without water) with: https://community.bistudio.com/wiki/BIS_fnc_findSafePos and it should add the new waypoint on the prior found position: https://community.bistudio.com/wiki/addWaypoint you can use this to find a random initial position for BIS_fnc_findSafePos: https://community.bistudio.com/wiki/random
  11. I guess for fixing u just need to use: Cam1 cameraEffect ["Internal", "Back", "uav1rt"]; to set the cam feed back to cam1 again. Try to not create a new cam, the EH and all those stuff again to fix the problem...
  12. I read it 12 times I guess, but idk what you want to do. could you explain it more practically like "I want to get a lift rotate around a ball" or something like that? also I don't understand: its the same meaning ... [vectorDir, vectorUp] is the same as getVectorDirAndUp would deliver...
  13. could you describe more detailed what you are trying to archive, please? You described what you tried already but I didn't understand what your goal is... if this is the only thing: then it's easy to do with this article: https://community.bistudio.com/wiki/setVectorDirAndUp the function fnc_SetPitchBankYaw described in ffur2007slx2_5's comment shows you how to get vector dir and up by rotation angles...
  14. sarogahtyp

    Randomness

    depends always on OPs knowledge at the time he is asking. a year ago u didn't know 'bout function library I guess. So at this time it was the easiest way to get a working solution for you. also there is nothing wrong with seperating things in different files. the real advantage comes with using precompiled functions...
  15. afaik intel has better single processing performance, therefore it should be the best choice. but to manage 400 AI you have to run at least 2 headless clients for that mission.
  16. sarogahtyp

    Protecting Pbo

    is there a license for use to forbid using ones work in encrypted mission files?
  17. -mods parameter needs each mod folder as target and not just a folder where your mod folders are located in. i guess that's the case here
  18. usually this is not a server setting but a mission thing. therefore it depends on your mission and may need mission modification. respawn settings may be setup in description.ext but it depends...
  19. what did u edit exactly? just show it. How else should anyone know what you did?
  20. I guess u don't need help. otherwise you would provide some info.
  21. sarogahtyp

    Randomness

    you could: _scripts = ["searchZONE.sqf", "searchZONE2.sqf", "noEMERG.sqf"]; _selected = selectRandom _scripts; [] execVM _selected;
  22. sarogahtyp

    Slow mission download

    https://community.bistudio.com/wiki/Arma_3_Startup_Parameters#Server_Options I had good experience with this. Try it out even if the description does not fit perfect to your case.
  23. a habit to avoid return values. _d is just a dummy. true but not requested by op so far. also the first group would get a nice touchdown :D avoiding the return value to conflict with count thx, didn't know bout that command.
×