lucho Posted May 31, 2016 Report Share Posted May 31, 2016 Its possible to make skin which you can go to radition zone and you blood will not drop? Link to comment Share on other sites More sharing options...
0 raymix Posted May 31, 2016 Report Share Posted May 31, 2016 It's not a skin, it's a radiation code itself that can be adjusted. You simply attach code for extra check - if player has certain skin applied then simply reduce damage given. lucho 1 Link to comment Share on other sites More sharing options...
0 lucho Posted May 31, 2016 Author Report Share Posted May 31, 2016 23 minutes ago, raymix said: It's not a skin, it's a radiation code itself that can be adjusted. You simply attach code for extra check - if player has certain skin applied then simply reduce damage given. Here is my code can you help me with this pls? Quote class Sensors { items=1; class Item0 { position[]={12505.5,0.00120354,14290.2}; a=100; b=100; activationBy="WEST"; repeating=1; interruptable=1; age="UNKNOWN"; name="radzone"; expCond="(player distance radzone) < 400;"; expActiv="TitleText[""Your Geiger counter starts making noise..."",""PLAIN DOWN""]; DZE_Quarantine = true;"; expDesactiv="TitleText[""Your Geiger counter is now silent."",""PLAIN DOWN""]; DZE_Quarantine = false;"; class Effects { }; }; }; }; Link to comment Share on other sites More sharing options...
0 raymix Posted May 31, 2016 Report Share Posted May 31, 2016 (edited) Hey, no that's just a configuration file, however it gives you a clue - boolean variable is switched on or off named DZE_Quarantine. What this now tells us is that there's an endless loop running somewhere that will enable or disable damage on player. Basically you'll need to find this script and modify it. However, something tells me you're not very familiar with scripting :) edit: oh yeah, found this old thread, might be something you are looking for. Edited May 31, 2016 by raymix Link to comment Share on other sites More sharing options...
0 olga3105 Posted June 1, 2016 Report Share Posted June 1, 2016 antirad_skin = ["","",""]; if (((typeOf player) == antirad_skin)) then { DZE_Quarantine=false; }; Maybe like this? Link to comment Share on other sites More sharing options...
0 lucho Posted June 2, 2016 Author Report Share Posted June 2, 2016 if (typeOf player == "Survivor2_DZ") then { DZE_Quarantine=false; }; i have add it to variables.sqf in table if(!isDedicated) then { still losing blood... Link to comment Share on other sites More sharing options...
0 raymix Posted June 2, 2016 Report Share Posted June 2, 2016 You can't compare string from typeOf to an array using == You can check if string exists inside an array using in fruits = ["apple","banana","oranges"]; notAFruit = if ("oranges" in fruits) then {true} else {false}; Also, lucho, did you actually add skin names or just copied the code directly? Cuz that array olga gave you consists of 3 empty strings which you are suppose to fill in :) Link to comment Share on other sites More sharing options...
0 lucho Posted June 2, 2016 Author Report Share Posted June 2, 2016 28 minutes ago, raymix said: You can't compare string from typeOf to an array using == You can check if string exists inside an array using in fruits = ["apple","banana","oranges"]; notAFruit = if ("oranges" in fruits) then {true} else {false}; Also, lucho, did you actually add skin names 1. TEST if (typeOf player == "Survivor2_DZ") then { DZE_Quarantine=false; }; &&AND&& 2. TEST specialskins = ["Survivor2_DZ"]; if (typeOf player == specialskins) then { DZE_Quarantine=false; }; added Survivor2_DZ and have tested it but when i join radiation zone still losing blood. Link to comment Share on other sites More sharing options...
0 lucho Posted June 2, 2016 Author Report Share Posted June 2, 2016 Maybe its easier to add Item which you can off radiation? like this extra_rc.hpp class RadiationItem{ text = "Radiation Shield"; script = "DZE_Quarantine=false"; }; YEAH ITS WORKS !!!!!! TESTED when you join radiation zone and press at item radiation is OFF. my first idea that works :D Link to comment Share on other sites More sharing options...
Question
lucho
Its possible to make skin which you can go to radition zone and you blood will not drop?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now