spAik Posted September 5, 2013 Share Posted September 5, 2013 Hi, has someone a solution if i want to delete all elements after a map? This can can exploded cars or jsut other randomly spawned elements. Link to comment
ZL|LuCaS Posted September 5, 2013 Share Posted September 5, 2013 Hi,has someone a solution if i want to delete all elements after a map? This can can exploded cars or jsut other randomly spawned elements. yes Link to comment
spAik Posted September 5, 2013 Author Share Posted September 5, 2013 okay. can u tell me? I mean delete all elements which are not world elements and which havent been created with a function like this: --define local objects = {} --creating objects[#objects+1] = createObject...... --deleting them for i,object in pairs (objects) do destroyElement(object) objects[i]=nil 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