scaryface87 Posted June 9, 2014 Posted June 9, 2014 Hello , Is it possible to attach a marker to an object wich can move? something like this? ; attachElements ( arrowMarker, thePlayer, 0, 0, 2 ) Greets
Cadell Posted June 9, 2014 Posted June 9, 2014 you can use this blip createBlipAttachedTo ( element elementToAttachTo, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] ) Script Trading Status Successful Trading : 26 Scam : 0 On Sale : Banking System SQL Based On Sale : Housing System MySQL Based Download and Support my new script on Community : http://community.mtasa.com/index.php?p=resources&s=details&id=11686 SQL Based Housing
Dzsozi (h03) Posted June 9, 2014 Posted June 9, 2014 you can use this blip createBlipAttachedTo ( element elementToAttachTo, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] ) This function is for attaching blips, not for elements, for example the object and the marker. For moving you can use "moveObject" and for attaching the attach function you wrote. //From phone Your signature image is too large. Removed
Karuzo Posted June 10, 2014 Posted June 10, 2014 Using moveObject would be so bad. You should better update the position using a render and setting the position of that marker in that render.
Cadell Posted June 10, 2014 Posted June 10, 2014 i think you looking for this' local x, y, z = getElementPosition(source) local marker = createMarker(x, y, z, "ring", 2, 204, 0, 0) attachElements(marker, source) Script Trading Status Successful Trading : 26 Scam : 0 On Sale : Banking System SQL Based On Sale : Housing System MySQL Based Download and Support my new script on Community : http://community.mtasa.com/index.php?p=resources&s=details&id=11686 SQL Based Housing
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