giallustio 770 Posted March 10, 2013 You can't test it alone and in SP editor. Share this post Link to post Share on other sites
bloodxgusher 10 Posted March 10, 2013 (edited) I'm posting this just so it is clear on how to get base and mobile respawning working Here is what I have in my =BTC=_revive_init.sqf /* Created by =BTC= Giallustio version 0.3 Visit us at: http://www.blacktemplars.altervista.org/ 06/03/2012 */ ////////////////// EDITABLE \\\\\\\\\\\\\\\\\\\\\\\\\\ BTC_revive_time_min = 5; BTC_revive_time_max = 600; BTC_who_can_revive = ["Man"]; BTC_black_screen = 0;//Black screen + button while unconscious or action wheel and clear view BTC_active_mobile = 1;//Active mobile respawn (You have to put in map the vehicle and give it a name. Then you have to add one object per side to move to the mobile (BTC_base_flag_west,BTC_base_flag_east) - (1 = yes, 0 = no)) BTC_mobile_respawn = 1;//Active the mobile respawn fnc (1 = yes, 0 = no) BTC_mobile_respawn_time = 30;//Secs delay for mobile vehicle to respawn BTC_need_first_aid = 1;//You need a first aid kit to revive (1 = yes, 0 = no) BTC_pvp = 0; //(disable the revive option for the enemy) BTC_vehs_mobile_west = [trans1_west_0];//Editable - define mobile west BTC_vehs_mobile_east = [trans2_east_0];//Editable - define mobile east ////////////////// Don't edit below \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //FNC call compile preprocessFile "=BTC=_revive\=BTC=_functions.sqf"; if (isServer) then { BTC_vehs_mobile_west = [mobile_west_0];//Editable - define mobile west BTC_vehs_mobile_east = [mobile_east_0];//Editable - define mobile east //Mobile if (BTC_active_mobile == 1 && count BTC_vehs_mobile_west != 0) then {for "_i" from 0 to ((count BTC_vehs_mobile_west) - 1) do {_veh = (BTC_vehs_mobile_west select _i);_var = format ["mobile_%1_%2",west,_i];_veh setVariable ["BTC_mobile",_var,true];if (BTC_mobile_respawn == 1) then {_resp = [_veh,_var] spawn BTC_vehicle_mobile_respawn;}};;} else {{deleteVehicle _x} foreach BTC_vehs_mobile_west;}; if (BTC_active_mobile == 1 && count BTC_vehs_mobile_east != 0) then {for "_i" from 0 to ((count BTC_vehs_mobile_east) - 1) do {_veh = (BTC_vehs_mobile_east select _i);_var = format ["mobile_%1_%2",east,_i];_veh setVariable ["BTC_mobile",_var,true];if (BTC_mobile_respawn == 1) then {_resp = [_veh,_var] spawn BTC_vehicle_mobile_respawn;};};} else {{deleteVehicle _x} foreach BTC_vehs_mobile_east;}; }; if (isDedicated) exitWith {}; BTC_dragging = false; //Init [] spawn { waitUntil {!isNull player}; waitUntil {player == player}; //"BTC_PVEH" addPublicVariableEventHandler BTC_fnc_PVEH; BTC_side = side player; BTC_respawn_marker = format ["respawn_%1",side player]; player addEventHandler ["HandleDamage", BTC_fnc_handledamage]; player addEventHandler ["Killed", BTC_player_killed]; player setVariable ["BTC_need_revive",0,true]; if ([player] call BTC_can_revive) then {player addAction [("<t color=""#ED2744"">") + ("First aid") + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[],BTC_first_aid], 8, true, true, "", "[] call BTC_check_action_first_aid"];}; player addAction [("<t color=""#ED2744"">") + ("Drag") + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[],BTC_drag], 8, true, true, "", "[] call BTC_check_action_drag"]; if (BTC_active_mobile == 1) then {if (side player == west) then {{_spawn = [format ["%1",_x]] spawn BTC_mobile_marker;BTC_base_flag_west addAction [("<t color=""#ED2744"">") + ("Move to mobile " + format ["%1",_x]) + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[str (_x)],BTC_move_to_mobile], 8, true, true, "", format ["[str (%1)] call BTC_mobile_check",_x]];} foreach BTC_vehs_mobile_west;} else {{_spawn = [format ["%1",_x]] spawn BTC_mobile_marker;BTC_base_flag_east addAction [("<t color=""#ED2744"">") + ("Move to mobile " + format ["%1",_x]) + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[str (_x)],BTC_move_to_mobile], 8, true, true, "", format ["[str (%1)] call BTC_mobile_check",_x]];} foreach BTC_vehs_mobile_east;};}; BTC_weapons = weapons _player; BTC_prim_weap = primaryWeapon _player; BTC_prim_items = primaryWeaponItems _player; BTC_sec_weap = secondaryWeapon _player; BTC_sec_items = secondaryWeaponItems _player; BTC_items_assigned = assignedItems _player; BTC_items = items _player; //_handgun = handgun player; BTC_handgun_items = handgunItems _player; BTC_mags = magazines _player; BTC_goggles = goggles _player; BTC_headgear = headgear _player; BTC_uniform = uniform _player; BTC_uniform_items = uniformItems _player; BTC_vest = vest _player; BTC_vest_items = vestItems _player; BTC_back_pack = backpack _player; BTC_weap_sel = currentWeapon _player; BTC_at_mag = "";BTC_r_mag = ""; if (BTC_sec_weap != "") then {player selectWeapon BTC_sec_weap;BTC_at_mag = currentMagazine player;player selectWeapon BTC_weap_sel;}; if (BTC_prim_weap != "") then {player selectWeapon BTC_prim_weap;BTC_r_mag = currentMagazine player;player selectWeapon BTC_weap_sel;}; hint "REVIVE STARTED"; }; Here is what I am doing. I am assuming BTC_vehs_mobile_west = [trans1_west_0];//Editable - define mobile west BTC_vehs_mobile_east = [trans2_east_0];//Editable - define mobile east are my mobile respawn vehicles for both sides. so in the editor I named them trans1 and trans1 Also in the editor. I went to empty/objects [signs]/ flag [checked] and then placed that in both bases for west and east. they are both named respectively BTC_base_flag_east and BTC_base_flag_west right now as it stands, every time I respawn, I end up at the edge of the map in the ocean. It seems I not defining correctly where to respawn. Can someone guide me? Thanks Edited March 10, 2013 by BloodxGusher Share this post Link to post Share on other sites
Desrat 0 Posted March 10, 2013 vehicle names need to match the script so [color=#333333]BTC_vehs_mobile_west = [trans1_west_0];//Editable - define mobile west [/color][color=#333333]BTC_vehs_mobile_east = [trans2_east_0];//Editable - define mobile east[/color] should be [color=#333333]BTC_vehs_mobile_west = [trans1];//Editable - define mobile west [/color][color=#333333]BTC_vehs_mobile_east = [trans2];//Editable - define mobile east[/color] Share this post Link to post Share on other sites
bloodxgusher 10 Posted March 10, 2013 vehicle names need to match the script so [color=#333333]BTC_vehs_mobile_west = [trans1_west_0];//Editable - define mobile west [/color][color=#333333]BTC_vehs_mobile_east = [trans2_east_0];//Editable - define mobile east[/color] should be [color=#333333]BTC_vehs_mobile_west = [trans1];//Editable - define mobile west [/color][color=#333333]BTC_vehs_mobile_east = [trans2];//Editable - define mobile east[/color] Ah ok I see now. I thought I had to keep the _0. I will test that bit out. As for the respawning in base? will the above correction fix that or am I still doing that bit wrong. Placing down a flag or some object and namimg it "BTC_base_flag_east" is wrong? Share this post Link to post Share on other sites
Desrat 0 Posted March 10, 2013 normal respawn point is a marker with name Respawn_West or Respawn_East, place that where players will respawn if not revived or using mobile. Share this post Link to post Share on other sites
giallustio 770 Posted March 10, 2013 Version 0.4 out! Added: - marker for injured player - removed setvehicleinit (i hate it) - code improved I added and changed a lot of things so maybe there are some hidden bugs. I tested it and it works. but i need some help here! Report feedback and bugs ;) Have fun! http://www.giallustio.altervista.org/pages/=BTC=_revive.php Share this post Link to post Share on other sites
Rafterman 10 Posted March 10, 2013 (edited) Heya! I have a little problem with the Mobile respawn, I cant get it working :/ I have added a vehicle ( empty - hunter(blue) and called it veh1. Init file is like this : /* Created by =BTC= Giallustio version 0.3 Visit us at: http://www.blacktemplars.altervista.org/ 06/03/2012 */ ////////////////// EDITABLE \\\\\\\\\\\\\\\\\\\\\\\\\\ BTC_revive_time_min = 5; BTC_revive_time_max = 600; BTC_who_can_revive = ["Man"]; BTC_black_screen = 0;//Black screen + button while unconscious or action wheel and clear view BTC_active_mobile = 1;//Active mobile respawn (You have to put in map the vehicle and give it a name. Then you have to add one object per side to move to the mobile (BTC_base_flag_west,BTC_base_flag_east) - (1 = yes, 0 = no)) BTC_mobile_respawn = 1;//Active the mobile respawn fnc (1 = yes, 0 = no) BTC_mobile_respawn_time = 30;//Secs delay for mobile vehicle to respawn BTC_need_first_aid = 1;//You need a first aid kit to revive (1 = yes, 0 = no) BTC_pvp = 0; //(disable the revive option for the enemy) BTC_vehs_mobile_west = [veh1];//Editable - define mobile west BTC_vehs_mobile_east = [veh2];//Editable - define mobile east ////////////////// Don't edit below \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //FNC call compile preprocessFile "=BTC=_revive\=BTC=_functions.sqf"; if (isServer) then { BTC_vehs_mobile_west = [mobile_west_0];//Editable - define mobile west *** I HAVE TRIED CHANGING THESE TO VEH1 TOO, STILL DOESNT WORK*** BTC_vehs_mobile_east = [mobile_east_0];//Editable - define mobile east //Mobile if (BTC_active_mobile == 1 && count BTC_vehs_mobile_west != 0) then {for "_i" from 0 to ((count BTC_vehs_mobile_west) - 1) do {_veh = (BTC_vehs_mobile_west select _i);_var = format ["mobile_%1_%2",west,_i];_veh setVariable ["BTC_mobile",_var,true];if (BTC_mobile_respawn == 1) then {_resp = [_veh,_var] spawn BTC_vehicle_mobile_respawn;}};;} else {{deleteVehicle _x} foreach BTC_vehs_mobile_west;}; if (BTC_active_mobile == 1 && count BTC_vehs_mobile_east != 0) then {for "_i" from 0 to ((count BTC_vehs_mobile_east) - 1) do {_veh = (BTC_vehs_mobile_east select _i);_var = format ["mobile_%1_%2",east,_i];_veh setVariable ["BTC_mobile",_var,true];if (BTC_mobile_respawn == 1) then {_resp = [_veh,_var] spawn BTC_vehicle_mobile_respawn;};};} else {{deleteVehicle _x} foreach BTC_vehs_mobile_east;}; }; if (isDedicated) exitWith {}; PS : I Didnt copy the entire INIT file cause I didnt change anything there. What I am doing wrong? NVM I got it working :D Edited March 10, 2013 by Rafterman Share this post Link to post Share on other sites
tonic-_- 53 Posted March 10, 2013 Nope...In this way you don't respawn on roof, objects etc. Actually spawning on roofs should be just fine. At least check if the alt is greater then 10 or something. Share this post Link to post Share on other sites
Dr_Cox1911 10 Posted March 10, 2013 NVM I got it working What have you done to get it working? I´m trying for hours but nothing seems to work. I want the mobile respawn and created a boat with the name "boat1", additionally I created a small flag with the name "BTC_base_flag_west". Because this is a coop mission I don´t really need the east thing, just the Blufor should be able to respawn/revive. This is how my =BTC=_revive_init.sqf looks like: /* Created by =BTC= Giallustio version 0.3 Visit us at: http://www.blacktemplars.altervista.org/ 06/03/2012 */ ////////////////// EDITABLE \\\\\\\\\\\\\\\\\\\\\\\\\\ BTC_revive_time_min = 5; BTC_revive_time_max = 600; BTC_who_can_revive = ["Man"]; BTC_black_screen = 0;//Black screen + button while unconscious or action wheel and clear view BTC_active_mobile = 1;//Active mobile respawn (You have to put in map the vehicle and give it a name. Then you have to add one object per side to move to the mobile (BTC_base_flag_west,BTC_base_flag_east) - (1 = yes, 0 = no)) BTC_mobile_respawn = 1;//Active the mobile respawn fnc (1 = yes, 0 = no) BTC_mobile_respawn_time = 30;//Secs delay for mobile vehicle to respawn BTC_need_first_aid = 1;//You need a first aid kit to revive (1 = yes, 0 = no) BTC_pvp = 0; //(disable the revive option for the enemy) BTC_vehs_mobile_west = [boat1];//Editable - define mobile west ////////////////// Don't edit below \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //FNC call compile preprocessFile "=BTC=_revive\=BTC=_functions.sqf"; if (isServer) then { BTC_vehs_mobile_west = [mobile_west_0];//Editable - define mobile west BTC_vehs_mobile_east = [mobile_east_0];//Editable - define mobile east //Mobile if (BTC_active_mobile == 1 && count BTC_vehs_mobile_west != 0) then {for "_i" from 0 to ((count BTC_vehs_mobile_west) - 1) do {_veh = (BTC_vehs_mobile_west select _i);_var = format ["mobile_%1_%2",west,_i];_veh setVariable ["BTC_mobile",_var,true];if (BTC_mobile_respawn == 1) then {_resp = [_veh,_var] spawn BTC_vehicle_mobile_respawn;}};;} else {{deleteVehicle _x} foreach BTC_vehs_mobile_west;}; if (BTC_active_mobile == 1 && count BTC_vehs_mobile_east != 0) then {for "_i" from 0 to ((count BTC_vehs_mobile_east) - 1) do {_veh = (BTC_vehs_mobile_east select _i);_var = format ["mobile_%1_%2",east,_i];_veh setVariable ["BTC_mobile",_var,true];if (BTC_mobile_respawn == 1) then {_resp = [_veh,_var] spawn BTC_vehicle_mobile_respawn;};};} else {{deleteVehicle _x} foreach BTC_vehs_mobile_east;}; }; if (isDedicated) exitWith {}; BTC_dragging = false; //Init [] spawn { waitUntil {!isNull player}; waitUntil {player == player}; //"BTC_PVEH" addPublicVariableEventHandler BTC_fnc_PVEH; BTC_side = side player; BTC_respawn_marker = format ["respawn_%1",side player]; player addEventHandler ["HandleDamage", BTC_fnc_handledamage]; player addEventHandler ["Killed", BTC_player_killed]; player setVariable ["BTC_need_revive",0,true]; if ([player] call BTC_can_revive) then {player addAction [("<t color=""#ED2744"">") + ("First aid") + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[],BTC_first_aid], 8, true, true, "", "[] call BTC_check_action_first_aid"];}; player addAction [("<t color=""#ED2744"">") + ("Drag") + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[],BTC_drag], 8, true, true, "", "[] call BTC_check_action_drag"]; if (BTC_active_mobile == 1) then {if (side player == west) then {{_spawn = [format ["%1",_x]] spawn BTC_mobile_marker;BTC_base_flag_west addAction [("<t color=""#ED2744"">") + ("Move to mobile " + format ["%1",_x]) + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[str (_x)],BTC_move_to_mobile], 8, true, true, "", format ["[str (%1)] call BTC_mobile_check",_x]];} foreach BTC_vehs_mobile_west;} else {{_spawn = [format ["%1",_x]] spawn BTC_mobile_marker;BTC_base_flag_east addAction [("<t color=""#ED2744"">") + ("Move to mobile " + format ["%1",_x]) + "</t>","=BTC=_revive\=BTC=_addAction.sqf",[[str (_x)],BTC_move_to_mobile], 8, true, true, "", format ["[str (%1)] call BTC_mobile_check",_x]];} foreach BTC_vehs_mobile_east;};}; BTC_weapons = weapons _player; BTC_prim_weap = primaryWeapon _player; BTC_prim_items = primaryWeaponItems _player; BTC_sec_weap = secondaryWeapon _player; BTC_sec_items = secondaryWeaponItems _player; BTC_items_assigned = assignedItems _player; BTC_items = items _player; //_handgun = handgun player; BTC_handgun_items = handgunItems _player; BTC_mags = magazines _player; BTC_goggles = goggles _player; BTC_headgear = headgear _player; BTC_uniform = uniform _player; BTC_uniform_items = uniformItems _player; BTC_vest = vest _player; BTC_vest_items = vestItems _player; BTC_back_pack = backpack _player; BTC_weap_sel = currentWeapon _player; BTC_at_mag = "";BTC_r_mag = ""; if (BTC_sec_weap != "") then {player selectWeapon BTC_sec_weap;BTC_at_mag = currentMagazine player;player selectWeapon BTC_weap_sel;}; if (BTC_prim_weap != "") then {player selectWeapon BTC_prim_weap;BTC_r_mag = currentMagazine player;player selectWeapon BTC_weap_sel;}; hint "REVIVE STARTED"; }; I save the mission as an MPmission and tried it alone with AI enabled. Then I just hit "Respawn" within the ESC-menu and after that I choose "respawn" with the action menu. Then my soldier gets respawned somewhere in the ocean and the map doesn´t work. Hope you guys can help me:( Share this post Link to post Share on other sites
giallustio 770 Posted March 10, 2013 Change this: if (isServer) then { BTC_vehs_mobile_west = [mobile_west_0];//Editable - define mobile west BTC_vehs_mobile_east = [mobile_east_0];//Editable - define mobile east ......... to if (isServer) then { ......... Share this post Link to post Share on other sites
Rafterman 10 Posted March 10, 2013 Well yeah, you actually have to make a marker called "respawn_west", where your player spawns. Then add that flag (BTC_base_flag_west) near to it and when you scroll on it, you can spawn on mobile spawn vehicle. Took me ages to think that out xD At the beginning I thought that you can spawn on vehicle the same as you "just respawn", by scrolling and clicking Mobile spawn or smth :D Share this post Link to post Share on other sites
Guest Posted March 10, 2013 Updated version frontpaged on the Armaholic homepage. [ALPHA] =BTC= Revive v0.4 Share this post Link to post Share on other sites
giallustio 770 Posted March 10, 2013 Thank you Foxhound for your support ;) Share this post Link to post Share on other sites
dar 12 Posted March 10, 2013 (edited) placed the scripts folder in my mission folder. Added the init of your example mission to my mission folder. Copied and pasted the lines from your description.ext to mine that are needed. Disabled mobile respawn via the scripts init file. Disabled the need of a medkit to revive via the scripts init file. Placed a marker "respawn_west" and the flag "BTC_base_flag_west". ->Preview. Result: Shot a teammate. Cant revive him. Blow myself up with grenades-> Dead, cant respawn, cam flies above me showing me the options "team switch", "end" etc. I chose team switch -> Took control of a former NOT INJURED Team mate. As soon as I enter this guy, I lie on the ground, seeing the option 'respawn'. So I did and respawned at the marker "respawn west" Fazit: couldnt revive my mate, was instantly dead, had to respawn with another guy, all on the ground are dead, team has two guys less that cant be brought back. What did I do wrong? EDIT: Smaple mission doesnt work for me as well. Could you perhaps release a Vid tutorial how to use this? Edited March 10, 2013 by Dar Share this post Link to post Share on other sites
giallustio 770 Posted March 10, 2013 Did you read the prevoius page? Again... YOU CAN'T TEST THE SCRIPT ALONE IN THE SP EDITOR. Thank you for your attention. Share this post Link to post Share on other sites
bloodxgusher 10 Posted March 10, 2013 placed the scripts folder in my mission folder. Added the init of your example mission to my mission folder. Copied and pasted the lines from your description.ext to mine that are needed. Disabled mobile respawn via the scripts init file. Disabled the need of a medkit to revive via the scripts init file. Placed a marker "respawn_west" and the flag "BTC_base_flag_west". ->Preview. Result: Shot a teammate. Cant revive him. Blow myself up with grenades-> Dead, cant respawn, cam flies above me showing me the options "team switch", "end" etc. I chose team switch -> Took control of a former NOT INJURED Team mate. As soon as I enter this guy, I lie on the ground, seeing the option 'respawn'. So I did and respawned at the marker "respawn west" Fazit: couldnt revive my mate, was instantly dead, had to respawn with another guy, all on the ground are dead, team has two guys less that cant be brought back. What did I do wrong? EDIT: Smaple mission doesnt work for me as well. Could you perhaps release a Vid tutorial how to use this? Hey Dar. To test this mission(s), you need to save it to Multiplayer. Start a server, load your mission then test. Some things can not be tested via the editor. Share this post Link to post Share on other sites
ApoNOOB 10 Posted March 11, 2013 Are there already Servers out there that make use of this script? I am itching to try it out but a quick filter for 'revive' and BTC only brought up your passworded clan server. Would love to play this with others if coop or pvp i dont really care. :) Share this post Link to post Share on other sites
Focht 1 Posted March 11, 2013 (edited) Having problems aswell with the mobile respawn. The for me seems to be changing it's name from the default. if both code and vehicle are named mobile_west_0 it's working just fine. As soon as I change the code/name though it stops working. for a coop mission with nothing east wise. trying to change the name mainly for the map purposes. mobile_west_mhq would be awesome. adding the virtual ammo box system to it. :D Edited March 11, 2013 by Focht Share this post Link to post Share on other sites
h4kkz 1 Posted March 11, 2013 i placed the exact same flag object with the name "BTC_base_flag_west" on a beach, i placed a boat with the name "mobile_west_0" in the sea, if i look at the flag i as the host can teleport to mobile spawn, but my other players/clients dont get that option, it doesnt seem to get published to the other clients AND as soon as i press respawn i spawn in the ocean at the south west corner of stratis. Share this post Link to post Share on other sites
khaki 10 Posted March 11, 2013 Thanks for this great script. Beats having to run/fly/drive out to where I just was :D Is it possible to define multiple medics though? I mean in the =BTC=_revive_init.sqf as one of the parameters it says: "BTC_who_can_revive = ["Man"]; " which is obvious enough. However I'd like to have multiple different types of units that can revive, is that possible? Share this post Link to post Share on other sites
giallustio 770 Posted March 11, 2013 Thanks for this great script. Beats having to run/fly/drive out to where I just was :DIs it possible to define multiple medics though? I mean in the =BTC=_revive_init.sqf as one of the parameters it says: "BTC_who_can_revive = ["Man"]; " which is obvious enough. However I'd like to have multiple different types of units that can revive, is that possible? Yep! It's an array! ;) Share this post Link to post Share on other sites
ramius86 13 Posted March 11, 2013 (edited) Are there already Servers out there that make use of this script? I am itching to try it out but a quick filter for 'revive' and BTC only brought up your passworded clan server. Would love to play this with others if coop or pvp i dont really care. :) I'm working on the pubblic server for resolve some security issue and will be again online today Edited March 11, 2013 by ramius86 Share this post Link to post Share on other sites
SavageCDN 231 Posted March 11, 2013 Are there already Servers out there that make use of this script? I am itching to try it out but a quick filter for 'revive' and BTC only brought up your passworded clan server. Would love to play this with others if coop or pvp i dont really care. :) See my sig although you will need to join teamspeak and get the password. We tried an open public server but there are just too many idiots and not enough server admin tools :p Having problems aswell with the mobile respawn. The for me seems to be changing it's name from the default. if both code and vehicle are named mobile_west_0 it's working just fine. As soon as I change the code/name though it stops working. for a coop mission with nothing east wise. trying to change the name mainly for the map purposes. mobile_west_mhq would be awesome. adding the virtual ammo box system to it. :D I get the same problem when I try and change the name of the vehicle from mobile_west_0. Great job on the Seize Ground mission btw. Thank you ;) I'm waiting for your feedback ;) Works great except for the MHQ name issue mentioned above.. .which really isn't an issue :p Share this post Link to post Share on other sites
SkeeterUK 1 Posted March 12, 2013 Hi there. Im very new to mission editor in general as in only started making a mission in arma 3 a few days ago for the first time in a arma game. Anyhow. I think i got the gist of how to install this script but i am experiancing a few issues. 1. When i hit respawn in esc menu that works i guess but it spawns me at the west marker i have on the map which i placed before trying to install this script, should i remove the marker respawn_west or leave it in and keep the car named car11 and the pipes object called BTC_vehs_mobile_west which is next to the vehicle. Btw i really dont want to have these objects in the map tbh i just want to be able to have any nearby friendly soldier come to the injured body and hit revive on the scroll menu and they revive, i dont want them respawning to a set location etc. 2. I tried in lan mp hosting my mission and when i shoot a AI team mate, i cant run up to him and scroll wheel "revive" as i just see the regular "gear or weapon choices. What am i doing wrong. 3. When i kill a team mate they seem to die and not just be injured i.e they should be moving but unable to get up etc. This is for a small practice co-op mission im making to teach myself making missions with the editor. I am getting help off a friend which is going fine so far but this script is the first im trying to implement myself. Oh and i placed the btc revive folder in missions/mymission/ as it kept telling me that things were missing if i didnt i.e i tried putting the btc revive folder in /missions but that didnt work as i said. So duno. :/ Btw this is what i have in the revive init: ////////////////// EDITABLE \\\\\\\\\\\\\\\\\\\\\\\\\\ BTC_revive_time_min = 5; BTC_revive_time_max = 600; BTC_who_can_revive = ["Man"]; BTC_black_screen = 0;//Black screen + button while unconscious or action wheel and clear view BTC_active_mobile = 1;//Active mobile respawn (You have to put in map the vehicle and give it a name. Then you have to add one object per side to move to the mobile (BTC_base_flag_west,BTC_base_flag_east) - (1 = yes, 0 = no)) BTC_mobile_respawn = 1;//Active the mobile respawn fnc (1 = yes, 0 = no) BTC_mobile_respawn_time = 30;//Secs delay for mobile vehicle to respawn BTC_need_first_aid = 1;//You need a first aid kit to revive (1 = yes, 0 = no) BTC_pvp = 1; //(disable the revive option for the enemy) BTC_injured_marker = 1; BTC_vehs_mobile_west = [car11];//Editable - define mobile west BTC_vehs_mobile_east = [mobile_east_0];//Editable - define mobile east So the car was named car11 in the map, the pipes next to it called that BTC_base_flag_west as instructed. Hope thats how its done? Presumably if i make btc active mobile to 0 that means i dont need it and respawn will work where the man is injured and revive in where he was injured? PVP is 1 cos i dont want the ai of the enemy to use this? This is my desc file //mission header class header { gametype = coop; minplayers = 1; maxplayers = 6; }; //respawn = "BASE"; //respawndelay = "5"; Respawn = 3; RespawnDelay = 4; #include "=BTC=_revive\=BTC=_respawn.h" Share this post Link to post Share on other sites
giallustio 770 Posted March 12, 2013 It's not AI supported. If you don't want the mobile respawn just disable it in this way: BTC_active_mobile = 0; BTC_mobile_respawn = 0;//[b]Active the mobile respawn fnc (1 = yes, 0 = no)[/b] BTC_vehs_mobile_west = [];//Editable - define mobile west BTC_vehs_mobile_east = [];//Editable - define mobile east Share this post Link to post Share on other sites