roaddog Posted February 28, 2015 Posted February 28, 2015 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. You gone learn today. I work my ass off, but I still can't pay tho.
TAPL Posted February 28, 2015 Posted February 28, 2015 getElementAttachedTo gets the element attached to the specified element, which in your cause you should put the blip to get the object that the blip is attached to. Use getAttachedElements to get the elements attached to the object.
roaddog Posted February 28, 2015 Author Posted February 28, 2015 Thank you again TAPL. You gone learn today. I work my ass off, but I still can't pay tho.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now