Jump to content

LoseBummer

Member
  • Content Count

    48
  • Joined

  • Last visited

  • Medals

Community Reputation

4 Neutral

About LoseBummer

  • Rank
    Lance Corporal

Recent Profile Visitors

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

  1. LoseBummer

    [WIP] Proyecto EA

    Nice man. (Tambien Argentino y de Santa Fe)
  2. Same concept to fix walls and fences, searchs for terrain objects and replace it with the intact one. One issue to overcome is placing a pillar in the gaps, in fences too. EDIT: not working right. Tried to offset per model xyz but the offset its in relation of the xyz of the map coordinates and not between objects. gamelogic>init null = ["MARKERNAME"] ExecVM "wff.sqf"; wff.sqf _marker = _this param [0,"CENTER",[""]]; _Size = markerSize _marker; _markerSize = _Size select 1; medianera = [["CITY_8MD_F","Land_City_8m_F"], ["CITY2_8MD_F","Land_City2_8m_F"], ["CITY2_PILLARD_F","Land_City_4m_F"], ["INDFNC_3_D_F","Land_IndFnc_3_F"], ["INDFNC_3_HOLE_F","Land_IndFnc_3_F"], ["MIL_WIREDFENCED_F","Land_Mil_WiredFence_F"], ["NET_FENCED_8M_F","Land_Net_Fence_8m_F"], ["NEW_WIREDFENCE_10M_DAM_F","Land_New_WiredFence_10m_F"], ["STONE_8MD_F","Land_Stone_8m_F"], ["WALL_INDCNC_4_D_F","Land_Wall_IndCnc_4_F"], ["WIRED_FENCE_4MD_F","Land_Wired_Fence_4m_F"], ["WIRED_FENCE_8MD_F","Land_Wired_Fence_8m_F"] ]; for "_i" from 0 to(count medianera-1) do { _Current = (medianera select _i) select 0; _Replacement = (medianera select _i) select 1; { if ((toUpper(str _x) find _Current) >= 0) then { hideObjectGlobal _x; _myReplacement = createVehicle [_Replacement, getPosATL _x, [], 0, "CAN_COLLIDE"]; _myReplacement setDir (getdir _x); _myReplacement setPosATL (getPosATL _x) ; _myReplacement enableSimulationGlobal true; }; } forEach nearestTerrainObjects [markerpos _marker, ["WALL", "FENCE"], _markerSize]; };
  3. The ON one. Search off model = "A3\Structures_F\Civ\Lamps\LampSolar_off_F.p3d"; Replace with on model = "A3\Structures_F\Civ\Lamps\LampSolar_F.p3d";
  4. 1 Original 2 CreateVehicle 3 CreateSimpleObject http://imgur.com/a/xYWpp
  5. Ok, progress. I remix the two scripts. One issue, if createsimpleobject is use the lights are on but without the light effect (i can explain better, the model of lamp is white but has no light effect on object). And with createvehicle, the light effect and model are created and can be destroyed. Sample Mission with the example. LINK
  6. Yeah its a change in the overall image but the map its great
  7. Yeah, I´m working in a template in this sector to build a compound. Link part mission; With a previous version o the script with command nearestobject what i do is search for the object (that version can´t find map objects). Searchs Off or ON lamps and change it for the counterpart. Radio Alpha is ON, Radio Bravo is Off. (In my case I manually find the off lamps and create one by one a on version above hidding the old one) Triyng to adapt with the neastestTerrainObject goes above my little knowlegde. With your script i can find it but not create the new object.
  8. LoseBummer

    3den Enhanced

    Hi R3vo, great mod. If i can made a request, it would be great if include this kind of script to hide objects within an area with keyword input to specified what terrain objects to hide. The version of Kylania its great, and with a GUI in Eden even more. https://forums.bistudio.com/topic/191289-hide-map-objects-junk-garbage-and-wrecks-with-script-done/
  9. Oh that improved code its beautiful. I´m triyng to find a way to replace the p3d off lamps with the on version without results. It´s possible?
  10. Great (I knew it that was wrong, but i was too shy to ask).
  11. Nice! Thanks Kylania. With Wreck, Toilet and Garbage in my case is enough. _marker = _this param [0,"CENTER",[""]]; _Size = markerSize _marker; _markerSize = _Size select 1; { if ((toUpper(str _x) find "WRECK") >= 0) then { hideObjectGlobal _x; }; } foreach (nearestTerrainObjects [markerpos _marker, ["HIDE"], _markerSize]); { if ((toUpper(str _x) find "GARBAGE") >= 0) then { hideObjectGlobal _x; }; } foreach (nearestTerrainObjects [markerpos _marker, ["HIDE"], _markerSize]); { if ((toUpper(str _x) find "TOILET") >= 0) then { hideObjectGlobal _x; }; } foreach (nearestTerrainObjects [markerpos _marker, ["HIDE"], _markerSize]);
  12. Ah! in case that the p3d is rotated, the original script from Brun has a parameter build in. Great script. in that case i think it would be; Replace rotation for the desire degree. _marker = _this param [0,"CENTER",[""]]; _Size = markerSize _marker; _markerSize = _Size select 1; Buildings = [["CLASSNAME","p3d",ROTATION], ["CLASSNAME","EMPTY TO DELETE"] ]; for "_i" from 0 to(count Buildings-1) do { _Current = (Buildings select _i) select 0; _Replacement = (Buildings select _i) select 1; _DirectionOffset = (Buildings select _i) select 2; { hideObjectGlobal _x; _myReplacement = createSimpleObject [_Replacement,getPosATL _x]; _myReplacement setDir (getdir _x) + _DirectionOffset; _myReplacement setPosATL (getPosATL _x) ; _myReplacement enableSimulationGlobal false; } forEach nearestObjects [markerpos _marker, [_Current],_markerSize]; };
  13. Thanks R3vo, i´m checking that out. BTW thanks to the help i found a way to remove map objects like garbage, wrecks (AFAIK) with a variant of thats scrip. Link Here:
  14. [FIX version in the post #3. thanks to Kylania] Looking for a way to remove objectmaps like junk, garbage and scrap cars within a range I come across with nearestTerrainObjects. The types name "hide" appears to be the one. There are different ones. I´ve been searching this for a while now, thanks to the help of R3vo and das attorney i adapt a script from Brun (link to the reference post). Gamelogic>init null = ["MARKERNAME"] execVM "SCRIPTNAME.sqf"; The radious is taken from the size of area marker. Script.sqf _marker = _this param [0,"CENTER",[""]]; _Size = markerSize _marker; _markerSize = _Size select 1; { hideObjectGlobal _x; } foreach (nearestTerrainObjects [markerpos _marker, ["HIDE"],_markerSize]);
  15. I read about optimization and replace createvehicle with createsimpleobject. Its way faster. It cannot open or interact with the object, or destroyed but in my case its worth it. gamelogic>init: null = ["markername"] execVM "script.sqf"; script.sqf _marker = _this param [0,"CENTER",[""]]; _Size = markerSize _marker; _markerSize = _Size select 1; Buildings = [["CLASSNAME","p3d"], ["CLASSNAME","EMPTY TO DELETE"] ]; for "_i" from 0 to(count Buildings-1) do { _Current = (Buildings select _i) select 0; _Replacement = (Buildings select _i) select 1; { hideObjectGlobal _x; _myReplacement = createSimpleObject [_Replacement,getPosATL _x]; _myReplacement setDir (getdir _x); _myReplacement setPosATL (getPosATL _x) ; _myReplacement enableSimulationGlobal false; } forEach nearestObjects [markerpos _marker, [_Current],_markerSize]; }; For example; ["Land_House_Big_01_V1_ruins_F","A3\Structures_F\Households\House_Big01\i_House_Big_01_V1_F.p3d"] I leave here my progress in case somebody search its or google it. In my case i looking for replace a building ruined, destroyed or abandoned with a the newest version. (or deleted).
×