roaddog Posted February 28, 2015 Share 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. Link to comment
TAPL Posted February 28, 2015 Share 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. Link to comment
roaddog Posted February 28, 2015 Author Share Posted February 28, 2015 Thank you again TAPL. Link to comment
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