Forum Jump :

Author Message

nuxil  



Posts: 11
Rank:


Level: Member

Country: no
Location:
Occupation:
Age:
In-game name:

 
#35837 Posted at 2008-10-09 17:02        
     
this just looks wrong.
//teamkill
if ((_killer != _victim) && (isPlayer _killer) && (vehicle _killer == _killer)) then
{
_killer addScore -5;
hq globalchat format["%1 received -5 points for teamkill",name _killer];
};

the problem here. is that, in theory you would get -5 in score for any kill.

reason. you dont check the side of the victim and killer and compare them.
so if i shoot some enemy i'll still get -5


why its not working? i have no clue. in the mission editor no mp functions work, you have to export the mission to mp to test


correct me if im wrong :)