Jump to content
Sign in to follow this  
falconx1

is these the correct operators?

Recommended Posts

are these the correct operators != ? to display the message if only killer is different from the victim?

if (victim != killer) then {

player globalChat format ["%1 was killed by %2", name victim, name killer];  

};

Share this post


Link to post
Share on other sites

Yep

_killer = _this select 1;
_unit = _this select 0;

if (_unit != _killer) then {

player globalChat format ["%1 was killed by %2", name _unit, name _killer];  

} else

{
player globalChat "you killed yourself dumbass";

};

Share this post


Link to post
Share on other sites

thanks i was in a hurry and wanted to skip the testing for pro a answer lol but i tested it it works as indented thanks for replying tho

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×