-ffs-AbodyRulez Posted August 18, 2013 Posted August 18, 2013 Okay here is the thing, i made a script that will create a marker in a random place on map. Its server-side and its a race gamemode script as well ( [DM] ) I want these markers to get auto deleted on every new map starts, i tried onMapStarting and i failed hard, removeElementData didn't work for me as well, any suggestions?
manve1 Posted August 18, 2013 Posted August 18, 2013 --Functions destroyElement --Events onMapStarting
-ffs-AbodyRulez Posted August 18, 2013 Author Posted August 18, 2013 It didn't work, it only destroyed the last checkpoint created, but others were kept the same
bandi94 Posted August 18, 2013 Posted August 18, 2013 show the code , most possbile you use the same variable. local marker = createMarker .... marker = createMarker.... destroyElement(marker) -- then ofc it's remove only the last
manve1 Posted August 18, 2013 Posted August 18, 2013 you can use a table to store the data and then use the data to destroy the marker which you wish to.
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