Balgias
Member-
Content Count
5 -
Joined
-
Last visited
-
Medals
Community Reputation
1 NeutralAbout Balgias
-
Rank
Rookie
-
] FAIL. Me and my friend spent a long long time trying to complete this mission just to run into a brick wall with this bullshit issue, incompetence.
-
Health Regen script.
Balgias replied to Balgias's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Well this coop mission it's being used for is a tough one, and coop campaign "save games" are a bit broken soo most of the time we end up having to replay entire missions because of some weird conditions causing the server to ignore the save games and revert to the start instead, thus deleting our progress. http://forums.bistudio.com/showthread.php?118731-Arma-2-Namalsk-Crisis It feels somewhat appropriate for there to be a somewhat strong healing mechanic present for coop for this mods campaign because of how often med-kits were frantically spammed in combat in the original STALKER. I know it's not at all in the aesthetic of the ARMA community in general to have a seemingly cheating method like this, but getting nicked by ones own grenade then being stuck moaning out for the rest of the mission is quite annoying :S Which is partially ARMA 2 to blame for the game (seemingly) having very little to no built-in self healing tools to capitalize on for single-player type missions apparently. But all that aside if someone knows any better on how to get this working properly for a campaign I would be greatful. -
Health Regen script.
Balgias replied to Balgias's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
5 Seconds is what I was going for, I changed sleep 0.05 to 0.10 for a more gamey style of game-play due to not wanting to set up something more complex that uses bandages and whatnot. I'll be setting this up for a co-op campaign, so does that mean I'll have to splice this script into each of the campaigns missions, and my partner will have to do the exact same ? :S -
I found this script in another part of the forums and I was wondering how I could get it to easily function in other campaigns, I'm unsure how to get this script started in-game. private ["_newDamage","_t"]; hint "Regen Script Started"; while {alive player} do { _t = time; waitUntil {time - _t > 1}; if (damage player > 0) then { _newDamage = (damage player) - 0.05; player setdamage _newDamage; hintSilent format["Current Damage %1",_newdamage]; }; sleep 0.10; }; waitUntil{alive player}; sleep 0.5; [player] execVM "regen_health.sqf";
-
I was trying to set up a health regen script for use with the MP Namalsk crisis campaign using this. private ["_newDamage","_t"]; hint "Regen Script Started"; while {alive player} do { _t = time; waitUntil {time - _t > 1}; if (damage player > 0) then { _newDamage = (damage player) - 0.05; player setdamage _newDamage; hintSilent format["Current Damage %1",_newdamage]; }; sleep 0.10; }; waitUntil{alive player}; sleep 0.5; [player] execVM "regen_health.sqf"; Does anyone here know how I could get this working ?