Page 1 of 1

Lua IPC stuff

Posted: Sun Jan 08, 2006 12:25 pm
by =FF=im2good4u
can some1 tell me how to use this and wut the posabileties are

Posted: Sun Jan 08, 2006 3:34 pm
by gotenks
you can use it to send information between 2 mods... sorta a handshake, 1 has to have the ability to recieve, 1 has to have the ability to send...

mod 1 contains this call:

Code: Select all

function sendInfo(ThisInfo)
     et.IPCSend( vmnumber, ThisInfo})
end
mod 2 contains this function:

Code: Select all

function et_IPCReceive( vmnumber, message )

end
message should beable to be anything, string, tables, etc.

you have to find away to get mod 2's vmnumber

Posted: Mon Jan 09, 2006 10:39 am
by =FF=im2good4u
hm i assume the vmnumber is the position if the lua_modules vars (from left to right) so its kinda cool i gues