OnClientPlayerTarget
Jump to navigation
Jump to search
This event is triggerd every time a player is aiming (requiers a gun)
Syntax
void onClientPlayerTarget ( element target )
Example
This example outputs the type of the target the client is aiming at
function targetingActivated ( target ) if ( target ) then outputChatBox(tostring(getElementType(source))) end end addEventHandler ( "onClientPlayerTarget", getRootElement(), targetingActivated )