Jump to content
Sign in to follow this  
James222

Having issues with name cursortarget, how would you do this?

Recommended Posts

_plyname = name cursorTarget;
if (_plyname == "ERROR: No unit";) then {hint "true";} else {hint "false";};

This doesn't work, anyone have a clue why?

Share this post


Link to post
Share on other sites
_plyname = name cursorTarget;
if (_plyname == "ERROR: No unit";) then {hint "true";} else {hint "false";};

This doesn't work, anyone have a clue why?

Remove the semicolon in the if statement condition check.

_plyname = name cursorTarget;
if (_plyname == "ERROR: No unit") then {hint "true";} else {hint "false";};

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  

×