View Full Version : SendMessage(); to another MP player's cog
Can SendMessage(); can send a message to another player's cog in a multiplayer game the same way a trigger can? I know I could just use a trigger, but I wanna know if SendMessage() can send to other players. I wanna do it to see if I can activate another player's weapon, or something like that.
------------------
GetThingSignature(Ace1);
The_New_Guy
07-09-2004, 02:34 AM
No, only SkillTarget() or SendTrigger() can directly send information to another machine.
------------------
- Wisdom is 99% experience, 1% knowledge. -
[This message has been edited by The_New_Guy (edited July 09, 2004).]
Oh well, I think the same can be done with those two, but it would've made less coding.
------------------
GetThingSignature(Ace1);
darthslaw
07-11-2004, 11:10 AM
So the following wouldn't work?
<font face="Verdana, Arial" size="2">SendMessageEx(GetInvCog(player, bin), message, param0, param1, param2, param3);
Where the correct "player" to be accessed can be retrieved via GetPlayerThing(index); or something similar</font>
------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
The_New_Guy
07-11-2004, 07:15 PM
No that would not work. You cant get another players inventory without setting up some sort of client/server system.
I guess I have to blame JK creators for this confusion. Most people assume if the cog verb lets you specify a target thing, that it will work on other players directly.
Almost all the inventory verbs are setup this way, and they only function on the local player.
[This message has been edited by The_New_Guy (edited July 11, 2004).]
darthslaw
07-11-2004, 09:06 PM
<font face="Verdana, Arial" size="2">Originally posted by The_New_Guy:
I guess I have to blame JK creators for this confusion.</font>
I agree. They left one helluvalotta loose ends in there.
------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
[SF]pjb
07-12-2004, 09:31 AM
Yea, LEC dident do the best job ever makeing COG, but you cant say they did a bad one.
and considering they proebly had some inpossible deadline to meet ontop of funding constraints!
------------------
I am Darth PJB!
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
darthslaw
07-12-2004, 10:34 AM
<font face="Verdana, Arial" size="2">Originally posted by [SF]pjb:
and considering they proebly had some inpossible deadline to meet ontop of funding constraints!</font>
Sounds like English class http://forums.massassi.net/html/wink.gif http://forums.massassi.net/html/tongue.gif
COG > * --> no argument; it's just annoying sometimes to have to work around the "unfinished" parts of the language http://forums.massassi.net/html/frown.gif Oh well.
------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
[SF]pjb
07-12-2004, 01:52 PM
tell you what, in thirty years when i've finished takeing over the world i'll phone you all up and we can work together to amke the ultimate scripting laungage for JK 9 : return of the sith
=P
------------------
I am Darth PJB!
well, go on, run away!
i have a plastic lightsaber and a jedi cape.. am i a nerd?
If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.