• 0
Sign in to follow this  
Followers 0
NIkita Bel

Remove Radiation zone on the fly

Question

Hi all! I want remove radiation effect from zone after 'dynamic mission' complition.. i can remove marker 'ExileContaminatedZone', but effect is still on player.. i can go outside removed zone radius - it will be offed, but when player comes back - effect is still applies..

{
  _currMarker = toArray _x;
  _currMarkerName = toString _currMarker;
  if(_currMarkerName == "ContaminatedZoneGhostHotel") then
  {
	  deleteMarker _x;
  };
} foreach allMapMarkers;

How can i totally remove radiation effect on some events?  

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

I dont think the removing off the marker will do any effect for this. You can try a Custom overwrite form follow files.

ExileClient_system_radiation_thread_update.sqf

I think that will helping your too figured out your problem.

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Sgt. ScrapMetal said:

I dont think the removing off the marker will do any effect for this. You can try a Custom overwrite form follow files.

ExileClient_system_radiation_thread_update.sqf

I think that will helping your too figured out your problem.

i tried.. i found, that all radiation checks goes inside foreach loop for ExileContaminatedZones array. I can substract my zone from it:

_arrRemoveZone = [[[21845.1,20977.6,0],300,400]];
ExileContaminatedZones = ExileContaminatedZones - _arrRemoveZone;

or just reassign ExileContaminatedZones

ExileContaminatedZones = [];

but i do it in mission script, and it doesn't help me.. maybe those scripts have different scopes for variables? i mean setting ExileContaminatedZones array in mission script doesn't affect ExileContaminatedZones in ExileClient_system_radiation_thread_update.sqf function file? 

Maybe solution is in ExileClient_system_radiation_event_onPlayerDied function? 

Edited by NIkita Bel

Share this post


Link to post
Share on other sites
  • 0
On 3/1/2017 at 1:41 AM, Sgt. ScrapMetal said:

I dont think the removing off the marker will do any effect for this. You can try a Custom overwrite form follow files.

ExileClient_system_radiation_thread_update.sqf

I think that will helping your too figured out your problem.

finally i done this.  You pointed me to the right direction! My first mistake was because  ExileClient_system_radiation_thread_update.sqf works client-side, and mission script works on server side.  i seen that marker can be removed from both server and client map, and that helped me to make checking if marker still exist and clear ExileContaminatedZones in ExileClient_system_radiation_thread_update.sqf. If ExileContaminatedZones array on client-side doesn't contain zone coordinates - no effect at this location applies on player.

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.