Jump to content

Search the Community

Showing results for tags 'combat life save'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Arma Reforger
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 1 result

  1. Hi everyone, I created a simple scenario Eden Editor that consist of only 1 BLUFOR assault squad (of course the Squad Leader is the PLAYER) ... this squad has ONE Combat Life Saver (the class is B_medic_F) ... This Combat Life Saver has 1 Medical Kit and 10 First Aid Kit ... I made this piece of code to make the Combat Life Save heals injured members of the squad ... I run this code from the Debug Console: player allowDamage false; // for test, so that I can see what is happening { // loop for each units in game if ((group _x == group player)) then // check if the unit is in my squad { if (typeOf _x == "B_medic_F" OR typeOf _x == "I_G_medic_F" OR typeOf _x == "I_medic_F") then // if the unit is Combat Life Saver (c_L_s), assuming there is only ONE Combat Life Saver in the squad { c_L_s = _x; // save the Combat Life Saver in a varialble called c_L_s c_L_s allowDamage false; // for test, so that Combat Life Saver will not take damage and die } else { // if NOT Combat Life Saver _x addeventhandler ["hit", { [_this select 0, c_L_s] spawn SAM_fnc_heal; }]; // if NOT Combat Life Saver, then add event handler (hit) that will call a function. Two values to be passed to the function: the unit that has dammage (_this select 0) and the Combat Life Saver unit (c_L_s). }; }; } forEach allUnits; SAM_fnc_heal = { // A function called SAM_fnc_heal that will be called by the _hurted = _this select 0; // save the first parameter passed to the function (the unit that has dammage "the hurted unit") in a variable called (_hurted) _healer = _this select 1; // save the second parameter passed to the function (the Combat Life Saver "the healer") in a variable called (_healer) _hurted_pos = position _hurted; // save the current position of the unit that has dammage (_hurted) in a variable called (_hurted_pos) _healer_pos = position _healer; // save the current position of the Combat Life Saver (_healer) in a variable called (_healer_pos) hintSilent parseText format ["%1", getDammage _hurted]; // a hint to see what is going on if ( alive _hurted && ((items c_L_s find "Medikit" != -1) OR (items c_L_s find "FirstAidKit" != -1)) && getDammage _hurted > 0.25) then // if the hurted unit is still alive and the healer has Medikit or has FirstAidKit excute the code below { doStop _hurted; // make the hurted unit stop moving _healer doMove (_hurted_pos); // move the healer to the position of the hurted unit waitUntil { _healer distance _hurted < 2 }; // wait unit the healer unit less than 2 meters far from the hurted unit while { getDammage _hurted > 0.25 } do // a loop that will keep running if the hurted unit dammage is above 0.25 { if (items c_L_s find "Medikit" != -1) then // if the the healer has a Medical Kit then do the next code { _healer playAction "MedicOther"; // make the healer do Medic others animation sleep 9; // wait for 9 seconds _hurted setDamage 0; // heal the hurted unit and make its dammge become 0 (fully healed) _healer removeItem "Medikit"; // remove the Medikit from the healer unit as it is already used just right now player sideChat format ["%1 healed to %2", _hurted, 1 - getDammage _hurted ]; // show a chat message telling that the unit is already been fully healed } else { // if the the healer does NOT have a Medikit then do the next code if (items c_L_s find "FirstAidKit" != -1) then // if the the healer has a First Aid Kit then do the next code { _healer playAction "MedicOther"; // make the healer do Medic others animation sleep 9; // wait for 9 seconds _hurted setDamage 0.25; // heal the hurted unit and make its dammge become 0.25 (healed to 0.75) _healer removeItem "FirstAidKit"; // remove the First Aid Kit from the healer unit as it is already used just right now player sideChat format ["%1 healed to %2", _hurted, 1 - getDammage _hurted ]; // show a chat message telling that the unit is already been partially healed }; }; }; _hurted doFollow player; // make the hurted unit start move to return to formation _healer doFollow player; // make the healer unit start move to return to formation _healer doMove (_healer_pos); // make the healer unit return to its original position _hurted doMove (_hurted_pos); // make the hurted unit return to its original position (the same current position ) hintSilent parseText format ["%1", getDammage _hurted]; // a hint to show the final dammege of the player waitUntil { getDammage _hurted < 0.251 }; // wait until the hurted player is healed }; }; 1- I run the scenario. 2- I execute the above code in the debug console. No errors 3- I shoot one member in my squad and the damage is less than 0.25 >>> nothing happen ... (the damage will be shown in a hint box) 4- I shoot that unit again and again until the damage is more than 0.25 >>> Voala, the Combat Life Saver move and get close that damaged unit healed it to 1 (100%) ... (the final damage will be 0 and will be shown in a hint box) ... Now the Combat Life Saver will NOT have any more Medical Kit. 5- I repeat this to another unit .. and the same process repeat, but this time the healing will be up to 75%, because the Combat Life Saver now has only First Aid Kits. 6- I repeat this shooting a units ... The Combat Life Saver move to that unit and start healing, during this healing process, i shoot another unit, and the Combat Life Saver was also able to heal the second unit ... So far so good. 7- when the Combat Life Saver run out of all First Aid Kits, nothing will happen ... So far so good. You can try it yourself and see if the above code works for you ... Just create a very simple scenario containing ONE Assault squad and then play that scenario and execute the above code in the Debug console and then start shooting your teammates and see what happen. However, there are 2 questions: 1- The above code will work only if I use HIT event handler ... It will not work if I use HandleDamage event handler ... During a battle with enemy, the Combat Life Saver will be busy fighting or hiding and it will NOT attempt to heal damaged units ... I tried to use the above code during a battle with opposing enemy and it did not work, why because it depend on HIT event handler ... The question is: is there any way to make the above code work with HandleDamage event handler ?? 2- Is there any way to develop the above code so that the Combat Life Saver check the squad every 5 minutes and try to heal the damaged mates one by one ?? I can't understand it, why Bohemia Interactive did not include this auto heal as a game built-in feature? What is the use of a Combat Life Saver in a squad, if he does not heal his team mates by his own? Arma is a military war simulation application (game), and in real life fight a medic soldier will do his job to aid wounded soldiers without waiting for an order from a ranking officer or a squad leader, am I right ?? ... I know there are mods attempting to solve this problem, but i don't think they are so effective. I hope this thread will be a start of an interesting discussion.
×