Jump to content
Sign in to follow this  
Khalashnikovf

AddAction when player focus on object with crosshair or ironsight

Recommended Posts

Again simple task, but I couldnt find anything about it. Is there any way how to do this? I just need to addAction when player is looking directly on some object and he is pointing on him with gun (in the best way).

Share this post


Link to post
Share on other sites

have a search for CursorTarget that should give you what you want.

[cursorTarget] join player;

hint format["target %1 ",cursortarget];

that' just two ways you can use it.

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  

×