[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Testing for the presence of lua functions from C
- From: bwalmisley@...
- Date: Mon, 19 Feb 2001 15:04:57 -0000
I'm considering doing some sort of callbacks from my game to the
level script (for events). What I need is some kind of
What I'm considering is something along the lines of:
-- do stuff
object = LoadObject("object\fred.x","fredname")
-- do something
-- do something else
So when "fredname" is destroyed something like:
lua_fn = lua_getglobal("fredname_IsDestroyed");
Am I barking up the wrong tree here? No doubt the lua gods will say
theres some devastatingly simple way to do it (there usually is...)
but I cannot find it.