Destroying props
Posted: Sat Nov 24, 2012 1:24 am
I created a neat "now you see it, now you don't" effect where I press a button, and a secret wall covers the statue, seconds later the statue is mysteriously gone.
It works like a charm, but about 5 seconds after the secret door reveals that it is gone, the program crashes and I'm returned to the editor with this error: "attempt to index global "dragonstatue" (a nil value) X"
I only get the error after I've tested the event.
The destroy script is:
Anyone else having either the same trouble or any solution?
It works like a charm, but about 5 seconds after the secret door reveals that it is gone, the program crashes and I'm returned to the editor with this error: "attempt to index global "dragonstatue" (a nil value) X"
I only get the error after I've tested the event.
The destroy script is:
Code: Select all
--
function destroydragon()
dragonstatue:destroy()
endAnyone else having either the same trouble or any solution?