[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: table function
- From: "Denis Lamarche" <brainwav@...>
- Date: Sat, 27 Apr 2002 04:45:00 +0000
Hello, I'm trying to get a table function to nil the variable that it was
assigned to. just like this:
reddog = Load_Sprite( "reddog.dat" ) --This assigns { NAME = "reddog.dat" }
to reddog.
reddog.Kill() -- I want this to do reddog = nil
I am using lua 4.0. Is there anyway I can do this from LUA? I tried making
a function in that table called Kill(), but how do I know what variable
called it?
Denis Lamarche
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com