Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Hey its me again with a questions to bear!!??Maybe i will get answers?
Re: Hey its me again with a questions to bear!!??Maybe i will get answers? [message #449528 is a reply to message #449481] Sat, 09 July 2011 07:38 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
Extending the SSGM plugin with lua_register() to add new LUA functions that call LUA wrappers for scripts.dll API functions, e.g.:

lua_register(L, "Console_Input",Lua_Console_Input);

int Lua_Console_Input(lua_State *L)
{
	const char *x = luaL_checkstring(L, 1);
	if(x)
	{
		Console_Input(x);	
	}
	return 0;
}


Then you can call Console_Input like any other LUA function.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Sat, 09 July 2011 07:41]

Report message to a moderator

 
Read Message icon6.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Decent map makers out there?
Next Topic: How to setup a Visual Studio 2010 SSGM plugin?
Goto Forum:
  


Current Time: Wed Dec 18 13:06:37 MST 2024

Total time taken to generate the page: 0.00679 seconds