Jump to content

getElementType onPlayerTarget


Recommended Posts

  • Moderators
function identTarg ( targettedElement ) 
    if targettedElement and getElementType ( targettedElement ) == "object" and getElementModel ( targettedElement ) == 2922 then 
  
    end 
    end 
    addEventHandler ( "onPlayerTarget", getRootElement(), identTarg ) 

Read wiki....

targettedElement: The element the player is targetting. false if no element is being targetted anymore.

Link to comment
function identTarg ( targettedElement ) 
    if targettedElement and getElementType ( targettedElement ) == "object" and getElementModel ( targettedElement ) == 2922 then 
  
    end 
    end 
    addEventHandler ( "onPlayerTarget", getRootElement(), identTarg ) 

Read wiki....

targettedElement: The element the player is targetting. false if no element is being targetted anymore.

Default wall with object. No more.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...