Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

8 Neutral

About xBowBii

  • Rank
    Private First Class

Profile Information

  • Gender
  • Location
  • Interests
    Scripting, helping people out and learning!

Recent Profile Visitors

312 profile views
  1. Make it something like this ForEach (allMissionObjects ["classnameAmmoBox1", "classnameAmmoBox2"]) ; I think that should work. https://community.bistudio.com/wiki/allMissionObjects Édit: Yours would use forEach (allMissionObjects _ammoBoxClass); try both methods I listed ;)
  2. Try replacing the "Nil" default value of _vehicles to "[]", or try executing saveVehicles first Remove my multiplayer checks (SURV_VehiclesLoaded) bit of code, it might bug things
  3. Sure! Check for the "foreach allMissionObjects" if I remember correctly. Replace that with an array containing the list of ammo crates which you van get easily. (NearSupplies, nearObjects, allMissionObjects etc, then filter all those objects with typeOf)
  4. Psssst. Try checking this out, I hope it might help you out ! Careful: if you want to use this for multiplayer use, remember that players can edit this namespace very easily. xbwb
  5. Anyone news on this? @mind , is it now possible in some way to paint those simpleObjects without the need of 3DEN editor? There's no point of telling us we can createSimpleObjects from the mission if we can't texture them; right? Thanks!
  6. xBowBii

    DSS: The Mod

    Hey Ranwer! It's so good to have you back! :D First of all, nice work on the IIR system, it looks great! I've seen you are still working with modules and it made me question something.. Why don't you prefer to make a mission that doesn't use modules? Modules are a fun way to go, but personnaly I'd prefer a premade MPMission that I can customize myself. I know that you prefer to use modules because they're easy to use for the server-owners and players, anyway I'll see if I can work on it too and check if I can add some things if you want. Do you think you could make a public Github so that we can help with the code? I think it would be very nice and easier for us. By the way, would you like help somewhere? I am ready to help if you need it. :) Stay awesome! xBowBii
  7. xBowBii

    DSS: The Mod

    Okay so guys ( @HeroesandvillainsOS and @Evil Organ mainly) I'd like to give my little opinion on what Ranwer just said/did.. You need to understand that for "solo" people who have projects like DSS or myself "Survivalized", it's very hard to keep working on because we can't stop comparing our work to that of a team like Exile or Epoch or whatever other "big" and known mods out there.. And when working on the mod, we kind of think like "we can't do aswell as X or Y mod" and it's very hard to keep working with that in mind.. When we see all the work of other mods we're kind of jealous and we say to ourselves "i'll never be capable of doing this".. So this is my one cent, maybe Ranwer isn't feeling like this at all but this is why I personally stopped.. "This is already done" and "X already has done this" and "Theirs is way better than mine" :( -xbwb
  8. xBowBii

    if variables

    Btw, use a "switch"-structure if you want better performance ;)
  9. Hey guys, This is just a snippet of code I've written some months ago, I tested it and it seemed to work perfectly but you might need to tweak some lines for it to work, I can't remember.. The code uses profileNamespace to write to a .var file some information, in this case all vehicles including its position, damaged (and non-damaged) hitpoints, fuel, cargo, ... I even used it to save placed objects (player-built, missions, ...) for my own survival mod (WIP). loadVehicles.sqf /* File: loadVehicles.sqf Author: xBowBii (aka xbwb) 08/03/15 */ _vehicles = profileNamespace getVariable ["SURV_Vehicles",nil]; { private ["_log","_vtype","_vpos","_vdir","_vdam","_veh","_vFuel","_vWeap","_vMags"]; _vType = _x select 0; _vPos = _x select 1; _vDir = _x select 2; _vDam = _x select 3; _vVar1 = _x select 4; _vFuel = _x select 5; _vWeap = _x select 6; _vMags = _x select 7; _hitp = _x select 8; //"extLOG" callExtension format["0:VehicleLogging: %1 at %2, with dmg %3. Fuel is %4, and Cargo is %5 && %6",_vType,_vPos,_vDam,_vFuel,_vWeap,_vMags]; if (_vDam == 1) exitWith {/* useless to spawn it */}; _veh = createVehicle [_vType, _vPos, [], 0, "CAN_COLLIDE"]; _veh setDir _vDir; _veh setDamage _vDam; removeAllWeapons _veh; removeAllItems _veh; _veh setVariable ["YOUR_OWN_CUSTOMVAR",_vVar1,true]; { _veh setHitPointDamage [(_x select 0), (_x select 1)]; } forEach _hitp; _veh setFuel _vFuel; { _veh addWeaponCargoGlobal [_x,1]; } forEach _vWeap; { _veh addMagazineCargoGlobal [_x,1]; } forEach _vMags; } forEach _vehicles; sleep 20; SURV_VehiclesLoaded = true; saveVehicles.sqf /* File: saveVehicles.sqf Author: xBowBii (aka xbwb) 08/03/15 */ SURV_VehiclesLoaded = false; waitUntil {SURV_VehiclesLoaded}; while {true} do { profileNamespace setVariable ["SURV_Vehicles",[]]; { _Vehs = profileNamespace getVariable ["SURV_Vehicles",[]]; _vehicle = _x; _xType = typeOf _x; _xPos = getPos _x; _xDir = getDir _x; _xDmg = damage _x; _xOwns = _x getVariable ["YOUR_OWN_CUSTOMVAR",[]]; _xFuel = fuel _x; _weapons = weaponCargo _x; _magazines = magazineCargo _x; _hitPoints = []; _cachekey = format["%1_HP", _xType]; _hitpoints = missionNamespace getVariable[_cachekey, []]; if (_hitpoints isEqualTo []) then { _na = configProperties[configFile >> "CfgVehicles" >> _xType >> "HitPoints", "_hitpoints pushBack configName _x; true", true]; missionNamespace setVariable[_cachekey, _hitpoints]; }; _finalHitPs = []; { _finalHitPs = _finalHitPs + [[_x,_vehicle getHitPointDamage _x]]; } forEach _hitPoints; profileNamespace setVariable ["SURV_Vehicles",(_vehs + [[_xtype,_xpos,_xdir,_xdmg,_xowns,_xFuel,_weapons,_magazines,_finalHitPs]])]; } forEach vehicles; saveProfileNamespace; sleep 20; }; Both scripts executed by this: if (isServer) then { execVM "\PATH\TO\loadVehicles.sqf"; execVM "\PATH\TO\saveVehicles.sqf"; }; If you want to use it, please do so, just remember crediting my work even though I won't use it myself and I had a lot of fun to write this tiny script. I hope you appreciate my work, please post suggestions if you have any! xbwb
  10. Could you try on Altis? I always get that error when executing that code on altis.. In the VR map it works like a charm.. Uh? It doesn't matter if the code after my code is working, the game just throws an error when executing my code ;) But thanks in advance for the help guys, I appreciate it :)
  11. Hey guys, I can't get BIS_fnc_findSafePos to work, my RPT is getting spammed by this error message: Error in expression < BIS_fnc_isPosBlacklisted)) then { if ((_pos distance _testPos) >= _minDist) the> Error position: <_pos distance _testPos) >= _minDist) the> Error Undefined variable in expression: _pos File A3\functions_f\misc\fn_findSafePos.sqf, line 98 Error in expression <["_newX", "_newY", "_testPos"]; _newX = _posX + (_maxDist - (random (_maxDist * > Error position: <_posX + (_maxDist - (random (_maxDist * > Error Undefined variable in expression: _posx File A3\functions_f\misc\fn_findSafePos.sqf, line 90 When executing this code: _position = [[14291,14854,0],0,12000,5,0,20,0] call BIS_fnc_findSafePos; Is the function broken? Thanks, xBowBii
  12. xBowBii

    DSS: The Mod

    That program looks awesome!
  13. xBowBii

    DSS: The Mod

    Looks neat ! Great job mate.
  14. xBowBii

    DSS: The Mod

    I will test MP too. ;)