Jump to content
  • 0

Revive problem - Players invincible after revive against AI


LuZifer

Question

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.

 

 

Well I tried this and didnt work any other thoughts?

Link to comment
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?
Link to comment
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.
Link to comment
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}}};
Link to comment
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

Link to comment
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;
}};

Link to comment
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 ((

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
  • Advertisement
  • Discord

×
×
  • Create New...