Advertisement

Lua question

Started by January 21, 2003 04:57 AM
-1 comments, last by CodeZ 21 years, 10 months ago
is it possible to change the value of a C++ variable from Lua? If it is, how to register that variable? I thought it was correct to do something like this: lua_pushnumber( g_pkScript, global_double_variabel ); lua_setglobal( g_pkScript, "global_double_variabel"); but when I change the value in the lua file (after a call to lua_dofile) the value have not been changed. [edited by - CodeZ on January 21, 2003 5:59:35 AM]

This topic is closed to new replies.

Advertisement