skuskap5 Posted January 1, 2015 Share Posted January 1, 2015 Witam, mam taki skrypt i wszystko działa ale chciałem zrobić aby pokazywały się po kolei markery a nie wszystkie na raz Kod server-side: local markers = { {0, 0, 4}, {23, 4, 4}, {41, 7, 3} } for i, v in ipairs(markers) do local marker = createMarker(unpack(markers[i])) if i == #markers then setMarkerIcon(marker, "finish") addEventHandler("onMarkerHit", marker, function() destroyElement(source) end) else setMarkerIcon(marker, "arrow") setMarkerTarget(marker, unpack(markers[i + 1])) addEventHandler("onMarkerHit", marker, function() destroyElement(source) end) end end 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