Jump to content
  • 0
Sign in to follow this  
LuZifer

Revive problem - Players invincible after revive against AI

Question

Hi
I have a problem with the effect of a revive of a player. Once revived the player can't take damage from any AI but can from other players. Anybody has a simple solution to this?
Thanks in advance

Luz

Share this post


Link to post
Share on other sites

20 answers to this question

Recommended Posts

  • 0

Put this line into the init.sqf:

if(hasInterface)then{"" spawn{waitUntil{!isNil {EPOCH_loadingScreenDone}}; waitUntil{player allowdamage true; false}}};

 

It's just a temporary fix, check the changelogs of upcoming updates and remove it as soon as this problem is fixed.

Share this post


Link to post
Share on other sites
  • 0

Put this line into the init.sqf:

if(hasInterface)then{"" spawn{waitUntil{!isNil {EPOCH_loadingScreenDone}}; waitUntil{player allowdamage true; false}}};

It's just a temporary fix, check the changelogs of upcoming updates and remove it as soon as this problem is fixed.

 

 

Well I tried this and didnt work any other thoughts?

Share this post


Link to post
Share on other sites
  • 0

Ah I was tired when I wrote this answer. Use the serverside code for this and be sure to tell the devs about this issue via GitHub or here in the Forum.

This should do the trick (must run serverside!):

"" spawn{ while{true}do{sleep 10;
{_x allowdamage true} count playableUnits;
}};
What I'm wondering is, why do other admins not report the same bug, maybe You messed up something while editing Your missionfile and/or added some script that causes this?

Share this post


Link to post
Share on other sites
  • 0

Ah I was tired when I wrote this answer. Use the serverside code for this and be sure to tell the devs about this issue via GitHub or here in the Forum.

This should do the trick (must run serverside!):

"" spawn{ while{true}do{sleep 10;
{_x allowdamage true} count playableUnits;
}};
What I'm wondering is, why do other admins not report the same bug, maybe You messed up something while editing Your missionfile and/or added some script that causes this?

 

Sorry for my English.
if (hasInterface) then {"" spawn {waitUntil {! isNil {EPOCH_loadingScreenDone}}; waitUntil {player allowdamage true; false}}};
It does not work. Players immortal for AI
I will be glad for your help.

Share this post


Link to post
Share on other sites
  • 0
Arma 3\@epochhive\addons\traderATMs
It does not work  :unsure:
 
/*
Add ATMs to Altis traders
Author: Narines
v 1.1
Optimized following the recommendations of Kroenen. 
*/
private["_atms"];
 _atms = [
[[13326.2, 14498.5], 248],
[[6199.3, 16847.2], 56], 
[[18468.7, 14268.9], 86]
 ];
 
 {
private ["_atm"];
_atm = createVehicle ["Land_Atm_01_F", _x select 0, [], 0, "CAN_COLLIDE"];
 
_atm setDir (_x select 1);
_atm setPos (_x select 0);
 
} foreach _atms;
 
if(hasInterface)then{"" spawn{waitUntil{!isNil {EPOCH_loadingScreenDone}}; waitUntil{player allowdamage true; false}}};

Share this post


Link to post
Share on other sites
  • 0

Ah I was tired when I wrote this answer. Use the serverside code for this and be sure to tell the devs about this issue via GitHub or here in the Forum.

This should do the trick (must run serverside!):

"" spawn{ while{true}do{sleep 10;
{_x allowdamage true} count playableUnits;
}};
What I'm wondering is, why do other admins not report the same bug, maybe You messed up something while editing Your missionfile and/or added some script that causes this?

 

help me please

Share this post


Link to post
Share on other sites
  • 0

Try it this way

 

/*


Add ATMs to Altis traders
Author: Narines
v 1.1
Optimized following the recommendations of Kroenen.
*/
private["_atms"];
_atms = [
[[13326.2, 14498.5], 248],
[[6199.3, 16847.2], 56],
[[18468.7, 14268.9], 86]
];

{
private ["_atm"];
_atm = createVehicle ["Land_Atm_01_F", _x select 0, [], 0, "CAN_COLLIDE"];

_atm setDir (_x select 1);
_atm setPos (_x select 0);

} foreach _atms;



"" spawn{ while{true}do{uiSleep 10;
{_x allowdamage true} count playableUnits;
}};

Share this post


Link to post
Share on other sites
  • 0

Try it this way

 

/*

Add ATMs to Altis traders

Author: Narines

v 1.1

Optimized following the recommendations of Kroenen.

*/

private["_atms"];

_atms = [

[[13326.2, 14498.5], 248],

[[6199.3, 16847.2], 56],

[[18468.7, 14268.9], 86]

];

{

private ["_atm"];

_atm = createVehicle ["Land_Atm_01_F", _x select 0, [], 0, "CAN_COLLIDE"];

_atm setDir (_x select 1);

_atm setPos (_x select 0);

} foreach _atms;

"" spawn{ while{true}do{uiSleep 10;

{_x allowdamage true} count playableUnits;

}};

I was in tears. does not work ((

Share this post


Link to post
Share on other sites
  • 0

If you have trader ATMs in your server pbo then extract then add this to the bottom,

"" spawn{ while{true}do{sleep 10;

{_x allowdamage true} count playableUnits;

}};

Repack and that should fix it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...