Jump to content
Sign in to follow this  
fortun

Get object name on object you aim at

Recommended Posts

Is there any way i can get objectname of the object i am aiming at? Like "Getobjectname Cursor"?

I want a mission where i can have a

"Dotarget"

command on the object am aiming at. For example when i aim at a soldier i get his name in a code?

I want to to a script where i can use "Dotarget" on Enemys so my friend can see them for like 20 secounds.

I used

"object findNearestEnemy position"

But then it automatically finds the enemy that i see even if im not aiming at him. I understand that i need to also use some kind of "Addaction "Mark target"" to execute the code on the soldier probably.

TLDR

I want to make command that Target Enemys that im aiming at for my friend with using the scrollwheel Action bar.

Share this post


Link to post
Share on other sites
Is there any way i can get objectname of the object i am aiming at?

hint str cursorTarget;

_man doTarget cursorTarget;

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  

×