OFF_Gunner Posted November 1, 2019 Share Posted November 1, 2019 (edited) I'm creating a blitz script, I already created the object, but I would like to delete this object and I don't know how. Could someone help? Script >< function Criarobjeto() local px, py, pz = getElementPosition ( getLocalPlayer ()) createObject(id, px, py, pz) end addCommandHandler("ob", Criarobjeto) Edited November 1, 2019 by GunnerMapper Link to comment
Discord Moderators Zango Posted November 2, 2019 Discord Moderators Share Posted November 2, 2019 You need to give your object a name obj = createObject(id, px, py, pz) and then you can destroy it later destroyElement(obj) 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