BieHDC Posted June 30, 2013 Posted June 30, 2013 Hello, if have the following problem in the following script: WARNING: objdel\objectdeleter.lua:3 Bad argument @ `showCursor´ function delete(source) show = 1 showCursor ( source, true) end function obscurename(mouseButton, buttonState, playerWhoClicked,clickPosX,clickPosY,clickPosZ) if show == 1 then destroyElement(source) show = 0 showCursor ( playerWhoClicked, false) end end function cursorshow(source) show = 0 showCursor ( source, false) end addCommandHandler( "del", delete) addCommandHandler( "imstupid", cursorshow) addEventHandler( "onElementClicked", getRootElement(), obscurename )
BieHDC Posted June 30, 2013 Author Posted June 30, 2013 This script should delete a with cursor clicked object(no worldobjects). I extracted it from another script.
Tete omar Posted June 30, 2013 Posted June 30, 2013 This script should delete a with cursor clicked object(no worldobjects).I extracted it from another script. Sorry, if it isn't your code, we cannot help you.
BieHDC Posted June 30, 2013 Author Posted June 30, 2013 Works now I set script client side, but i have to set it to no side
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