Jump to content

[DEATH BODY LOST EVENT] 1.6


juandayz

Recommended Posts

UPDATE 13-6-17

Spawn a marker with 350 of radius.

Inside, lost in somewhere thers a corpse with a jewells reward in his inventory. (the body agonize so shoot on him).


1-Open your init.sqf be sure this line is seted as true;
EpochUseEvents = true;

2- in this line add the event:
EpochEvents = [["any","any","any","any",18,"deathcorpse"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
 

3-create deathcorpse.sqf and drop into: dayz_server.pbo\modules\ ¡ 

  Reveal hidden contents

VIDEO:

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1 month later...
  On 3/12/2017 at 9:29 AM, Cubitron said:

Hi, event is runing buit no marker shows

Expand  

hey! heres the bunch of code for markers

  Reveal hidden contents

you will see a large marker on the radius of the body... if u wanna show exactly wheres the body.. then change this line:

_marker = createMarker ["DeathLostBody", _position];

by this

_marker = createMarker ["DeathLostBody", _mainpos];

 

Link to comment
Share on other sites

  • 2 months later...

Hi,

Death body and marker is there, but nothing in the body inventory. Maybe i do something wrong?

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/17/2017 at 10:55 PM, Corpulio_Hun said:

Hi,

Death body and marker is there, but nothing in the body inventory. Maybe i do something wrong?

  Reveal hidden contents

 

Expand  

It's here.

  Reveal hidden contents

In this code, random(3) will create value between 0 and 3, which will be "round"ed to 1 - 3.

So, the reward is selected from case 1, case 2 and case 3 - here, case 3 does not exist.

To fix this, change case 0 to case 3

 

Link to comment
Share on other sites

  On 5/18/2017 at 9:06 AM, Schalldampfer said:

It's here.

  Reveal hidden contents

In this code, random(3) will create value between 0 and 3, which will be "round"ed to 1 - 3.

So, the reward is selected from case 1, case 2 and case 3 - here, case 3 does not exist.

To fix this, change case 0 to case 3

 

Expand  

okay, i chang and not work. When i go in the body then finish the event. So what is wrong now?

Link to comment
Share on other sites

  On 5/18/2017 at 9:06 AM, Schalldampfer said:

It's here.

  Reveal hidden contents

In this code, random(3) will create value between 0 and 3, which will be "round"ed to 1 - 3.

So, the reward is selected from case 1, case 2 and case 3 - here, case 3 does not exist.

To fix this, change case 0 to case 3

 

Expand  

That's not quite correct, 0 1 2 is 3 items , the 0 is always included , changing the 0 to 3 will mean whatever reward is in 3 might not be located as 3 would be the 4th item 

Link to comment
Share on other sites

  On 5/25/2017 at 9:59 AM, Schalldampfer said:

_randomCases = round(random(3)) will be 1, 2 and 3. Not 0, 1 and 2. 

Expand  

all my life i was think 0 is taked as 1.

_randomCases = round(random(3));

case 0

case 1

case 2

 

anyway guys if it give problems we can use:

private ["_randomNumbers"];
_randomNumbers = floor(random 100);

if (_randomNumbers <= 40) then { 
 _deathcorpse addMagazine "ItemSapphire";
    _deathcorpse addMagazine "ItemSapphire";
};
if (_randomNumbers <= 70 && _randomNumbers > 41) then { 
  _deathcorpse addMagazine "ItemAmethyst";
    _deathcorpse addMagazine "ItemEmerald";
};
if (_randomNumbers <= 100 && _randomNumbers > 71) then { 
  _deathcorpse addMagazine "ItemSapphire";
    _deathcorpse addMagazine "ItemSapphire";
};

 

Link to comment
Share on other sites

  On 5/25/2017 at 4:06 PM, Robert261171 said:

thanks mate

Expand  
  Reveal hidden contents

try with it.. and tell me.. what happend

Link to comment
Share on other sites

  On 5/25/2017 at 3:30 PM, Robert261171 said:

It was working fine but now as you walk up to the body it disappears, have not put any other scripts in lately.. 

Expand  

shoot the body before u walk close to it and it stays and has loot inside it, body dose despawn very fast after that tho maybe 10-20 seconds

@juandayz have you fixed the body despawning so fast ? i am presuming it is a sleep function ?

Link to comment
Share on other sites

  On 5/25/2017 at 9:44 PM, dayz noob said:

shoot the body before u walk close to it and it stays and has loot inside it, body dose despawn very fast after that tho maybe 10-20 seconds

@juandayz have you fixed the body despawning so fast ? i am presuming it is a sleep function ?

Expand  

yes i was doing that, im testing the other version that was put up..

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...