Jump to content

ov3rj0rd

Member
  • Content Count

    69
  • Joined

  • Last visited

  • Medals

Everything posted by ov3rj0rd

  1. Thank you for the fast replies! @King_Richard: I will try this out. I am using Tophe's vehicle respawn modified by Ahoy World so where would your bit go in? @Ranwer: Could you explain a little bit more on that? I searched MP Eventhandler Respawn and got this https://community.bistudio.com/wiki/Arma_3_Respawn but I am not sure what to make of it. Sorry I am still very new to this :confused: Here is the Respawn script that has been edited by AW. Where would that code go in here? ================================================================================================================== */ private ["_hasname","_delay","_deserted","_respawns","_noend","_dead","_nodelay","_timeout","_position","_dir","_effect","_rounds","_run","_unit","_explode","_dynamic","_unitinit","_haveinit","_unitname","_type"]; if (!isServer) exitWith {}; // Define variables _unit = _this select 0; _delay = if (count _this > 1) then {_this select 1} else {30}; _deserted = if (count _this > 2) then {_this select 2} else {120}; _respawns = if (count _this > 3) then {_this select 3} else {0}; _explode = if (count _this > 4) then {_this select 4} else {false}; _dynamic = if (count _this > 5) then {_this select 5} else {false}; _unitinit = if (count _this > 6) then {_this select 6} else {}; _haveinit = if (count _this > 6) then {true} else {false}; _hasname = false; _unitname = vehicleVarName _unit; if (isNil _unitname) then {_hasname = false;} else {_hasname = true;}; _noend = true; _run = true; _rounds = 0; if (_delay < 0) then {_delay = 0}; if (_deserted < 0) then {_deserted = 0}; if (_respawns <= 0) then {_respawns= 0; _noend = true;}; if (_respawns > 0) then {_noend = false}; _dir = getDir _unit; _position = getPosASL _unit; _type = typeOf _unit; _dead = false; _nodelay = false; // Start monitoring the vehicle while {_run} do { sleep (5 + (random 20)); if ((getDammage _unit > 0.8) and ({alive _x} count crew _unit == 0)) then {_dead = true}; // Check if the vehicle is deserted. if (_deserted > 0) then { _nearPlayers = false; { if ((_x distance _unit) < PARAMS_VehicleRespawnDistance) exitWith { _nearPlayers = true; }; } forEach playableUnits; if ((getPosASL _unit distance _position > 10) and ({alive _x} count crew _unit == 0) and (getDammage _unit < 0.8) and !_nearPlayers) then { _timeout = time + _deserted; sleep 0.1; waitUntil {_timeout < time or !alive _unit or {alive _x} count crew _unit > 0}; if ({alive _x} count crew _unit > 0) then {_dead = false}; if ({alive _x} count crew _unit == 0) then {_dead = true; _nodelay =true}; if !(alive _unit) then {_dead = true; _nodelay = false}; }; }; // Respawn vehicle if (_dead) then { if (_nodelay) then {sleep 0.1; _nodelay = false;} else {sleep _delay;}; if (_dynamic) then {_position = getPosASL _unit; _dir = getDir _unit;}; if (_explode) then {_effect = "M_AT" createVehicle getPosASL _unit; _effect setPosASL getPosASL _unit;}; sleep 0.1; deleteVehicle _unit; sleep 2; _unit = _type createVehicle _position; _unit setPosASL [_position select 0,_position select 1,(_position select 2) + 0.2]; _unit setDir _dir; if (["B_UAV", _type] call BIS_fnc_inString) then { createVehicleCrew _unit; }; if(_unitname != "") then { _unit setVehicleVarName (format ["%1",_unitname]); PublicVariable (format ["%1",_unitname]); }; //processInitCommands; [[[_unit],"scripts\aw_unitSetup.sqf"],"BIS_fnc_execVM",nil,true] spawn BIS_fnc_MP; _unit addeventhandler ["fired",{ if (vehicle (_this select 0) in list base ) then {deleteVehicle (_this select 6)};}]; //if(isServer) then {[_unit] execVM "scripts\aw_markerFollow.sqf"}; _dead = false; // Check respawn amount if !(_noend) then {_rounds = _rounds + 1}; if ((_rounds == _respawns) and !(_noend)) then {_run = false;}; }; };
  2. Very nice! I am with a mil sim unit and this will solve our SF mission problems :P I have one problem though, When a vehicle respawns, the addaction to load anything is gone.. is there a simple way to reinitialize the vehicles with the addactions?
  3. ov3rj0rd

    =BTC= Revive

    Very nice work! Just a quick question. I have been wanting to make a mission where the player randomly respawns in a town. Is it possible to tell the script to respawn the player randomly within a radius around "respawn_west"? Edit: Okay I found out that just by putting "respawn_west1 or respawn_west2" etc will spawn the player at those positions but that does not work with BTC revive. Any thoughts on how to get that working?
  4. ov3rj0rd

    [Early Preview] 3D Editor

    Hey very handy tool! I just have one problem, I know ATM it does not support exporting to the mission but how would I manually enter these into my mission? I have the .csv file and can open it up with NP++ and it shows all my objects plus their coords in the worldspace. Thanks in advance, OV3RJ0RD Edit: I tried manually inputting the data to the .sqm but when I went in the editor, nothing was there and nothing in game either. I followed the format with the other data within the .sqm.. I guess I messed up somewhere but because I made a giant FOB it would take forever to find the error.. I will just wait till exporting to .sqm is available.
  5. Hi, Great mod! I have had a lot of fun messing around on single player creating ambushes and such :P. I am having a problem trying to put the mod onto my game server. I have the mod installed on the server as @mcc_sandbox and @CBA_A3 in the root directory. I have also placed the code into the init file at the very top and the server keys are in the right folder. I sometimes are not able to join in and when I do get in after a bit of messing around, I dont have the mission generator action. Any thoughts? Thanks, OV3RJ0RD
  6. Thanks I will have a look!
  7. Hello, As the title suggests I m needing help with a little bit of scripting. I a making a domination kinda style mission on Altis. I would like to have base building like on wasteland but just that and nothing else. I have tried and tried to find what it uses but can't find it anywhere in the current wastelands. Please if anyone can help me that will be much appreciated.
  8. Hi Kylania, Thanks for the help! I am also needing help with with my original question. Like I said, I have R3F working, I just need to figure out how to get the base building objects spawn around the map? Thanks, OV3RJ0RD
  9. Hey Yonose I am actually trying to find a 3D editor for placing objects on the map. But Thank you for Reply! :) I am also still trying to figure out the base building if you would like to help me out with that. I have R3F working now, the only thing is I cant seem to figure out how the objects actually spawn around map? Thanks, OV3RJ0RD
  10. Hey Valixx, Thank you for the reply! I feel even more stupid now as it was right under my nose! :P Im still pretty new to this. ---------- Post added at 11:38 ---------- Previous post was at 11:36 ---------- Hey and another thing. I have also been trying to find a good 3D Editor for Altis.. There is this one http://www.armaholic.com/page.php?id=21924 but I cant seem to get it to work on Altis.
  11. Hey BangaBob, I love your script man! nice work! I am running a dedi server and using this for the mission. I am however getting a problem. When the mission first starts all the markers are red. I then go to lobby and come back in and then they are black. They still spawn AI but they only turn red when I actually set foot into the spawn radius. Same thing occurs when I switch teams. Any thoughts? I have been trying to look everywhere in the file but I cannot find where the mess up is. Thanks!
  12. ov3rj0rd

    Arma 3 Beta Targeting

    Hello, I am having trouble trying to target air or ground units while in helicopters, even my gunner can't lock onto enemy air when using anti air missiles.... In the Alpha you could target easily.
  13. I have a problem, I am trying to use it for the Arma 3 Alpha, it seems to work great for RTB but when I set a destination the pilot starts to fly to the left edge of the map no matter where I place the destination. other than that this is an awesome script.
  14. ov3rj0rd

    =BTC= Revive

    Hey Giallustio, I have been having that problem where anyone will spawn out into the water. Yes I do have a respawn_west marker. Edit: Okay its fixed now, I don't know what I did other than getting the CBA addon which fixed my addons problem. This is a great script man keep it up!
×