@ Dinger thanks for your help man. OK i tried this and there seems to be a problem occuring after respawn, it works ok initially BUT after respawn the problems begin, it seems that your soldier respawns and his name comes up red instead of green thus indicating enemy status. Is there any way to reset this after or during the respawn process to be Friendly again?
Im making a script to kill the respawn killers, and had the same problem.
I belive it's because when unit is dead, it's rating is 0 untill it respawn, so when the eventhandler "checks" the side, the result is "CIV".
I solved it putting a name to the group and not using side command.
I still have the problem of inserting again the eventhandler to the dead guy. I can do that by making a trigger with the condition !alive unit, but there must be a better way. i dont want to make a trigger for each unit in the map.
Also, i don't know if this will work in MP because the "killed" eventhandler is local ... :-\
Any hook will be apreciated
My script so far goes like this
_muerto = _this select 0
_matador = _this select 1
? _muerto in units grpOeste && _matador in units grpOeste: goto "fin"
? _muerto in units grpEste && _matador in units grpEste: goto "fin"
_linea = "Don't kill in the respwn zone"
? _muerto in units grpOeste && _muerto in list listaRespOeste: _matador setdammage 1; hint _linea; goto "fin"
? _muerto in units grpEste && _muerto in list listaRespEste: _matador setdammage 1; hint _linea; goto "fin"
#fin
exit