Jump to content

getElementAttachedTo?


roaddog

Recommended Posts

Hey, how to detect/get element(blip) that is attached to other element(object)?

I used createBlipAttachedTo to create the blip, and

        local attached = getElementAttachedTo ( tree ) 
        if ( attached ) then 
            outputChatBox ( "This tree is attached to a " .. getElementType(attached) ) 
        else 
            outputChatBox( "This tree is not attached to an element") 
        end 

the attached var gives a false result.

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...