Lua IPC stuff

Discussions about ET modding (sdk code, player/weapon modeling)

Moderators: Forum moderators, developers

Post Reply
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Lua IPC stuff

Post by =FF=im2good4u »

can some1 tell me how to use this and wut the posabileties are
User avatar
gotenks
Posts: 3465
Joined: Fri Nov 15, 2002 4:12 pm
Location: out of my mind
Contact:

Post 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
My Website
Image
After a night of binge drinking:
=FF=im2good4u wrote:WTF wanst i on top ?
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post 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
Post Reply