Droopy Piles

Ok script not working :D

4 posts in this topic

So I loaded up my current server state of exile in the editor, I placed markers, and invisible heli pads, and in the inits of the heli pad was a line to the sqf that would set damage to you in the given area.

So in summary, markers, heli pad and a init within the heli pad, all worked in the editor. Doesn't work in the server :/ no markers and no damage.

How can I easily fix this I also run infistar

Thx in Advance

Share this post


Link to post
Share on other sites

There can be a million different things that will make the script not work. So be more specific about your problem. Provide code, RPT, etc.

Share this post


Link to post
Share on other sites
Advertisement
6 minutes ago, GR8 said:

There can be a million different things that will make the script not work. So be more specific about your problem. Provide code, RPT, etc.

ok the 2 codes are

  • this goes into the helipad init

// rickB´s contamination Zone script - playable units not wearing proper Gasmasks (M50 and M40´s - from HiddenIdentity Pack II) receive damage every 10 seconds

// put this in invisible helipad (found in editor under signs) to be center of desired contamiationzone: null = [this, 100, 80, 10] execVM "rick_survival\rick_contamination.sqf"
// playableunits being inside the contamiation zone (this) (inside radius 100m and under height 80m) will receive damage every 10 seconds
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
if (isserver OR isdedicated) then    {
 
_contaminationcenter = _this select 0;
_conrad = _this select 1;
_height = _this select 2;
_time = _this select 3;
 
//wait until unit inside contaminated zone
 
waituntil {({(_contaminationcenter distance _x) < _conrad AND getposATL _x select 2 < _height } count switchableUnits) > 0 OR ({(_contaminationcenter distance _x) < _conrad AND getposATL _x select 2 < _height} count playableUnits) > 0};
 
_allplayers = switchableunits + playableunits;
 
{_allplayers = switchableunits + playableunits; if (_x distance _contaminationcenter < _conrad AND headgear _x != "H_CrewHelmetHeli_O" AND headgear _x != "H_CrewHelmetHeli_O" AND headgear _x != "H_CrewHelmetHeli_O" AND getposATL _x select 2 < 80) then {hint format ["_%1, you should wear a gasmask here!",_x]; _x setdammage ((getdammage _x)+0.2)} } foreach _allplayers;
 

sleep _time;
 
null = [_contaminationcenter,_conrad, _height, _time] execVM "rick_survival\rick_contamination.sqf";
 

       };
 
  • this goes into the player init
// rickB´s Breathing for HiddenIdentity Gasmasks M40 & M50
// put this in units init to make breathing sound while wearing one of the listed Gasmasks ->  null = [this] execVM "rick_survival\rick_mask_breathe.sqf";
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
_player = _this select 0;
 
if (isdedicated) exitwith {};
 
waituntil {headgear _player == "H_CrewHelmetHeli_O" OR headgear _player == "H_CrewHelmetHeli_O" OR headgear _player == "H_CrewHelmetHeli_O"};
 
while {alive _player AND (headgear _player == "H_CrewHelmetHeli_O" OR headgear _player == "H_CrewHelmetHeli_O" OR headgear _player == "H_CrewHelmetHeli_O")} do {
playsound3d ["A3\sounds_f\characters\human-sfx\other\diver-breath-2.wss", _player,false,getposASL _player, 0.8,1,15];
sleep 5;
 
   };
 
null = [_player] execVM "rick_survival\rick_mask_breathe.sqf";
 
And here is the rpt
 
 
Thx
 
 

Share this post


Link to post
Share on other sites

Send over your Client RPT

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.