Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → SendMessage(); to another MP player's cog
SendMessage(); to another MP player's cog
2004-07-08, 11:12 PM #1
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);
I am _ Ace_1 _ , and I approve this message.
2004-07-08, 11:34 PM #2
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).]
- Wisdom is 99% experience, 1% knowledge. -
2004-07-09, 6:10 AM #3
Oh well, I think the same can be done with those two, but it would've made less coding.

------------------
GetThingSignature(Ace1);
I am _ Ace_1 _ , and I approve this message.
2004-07-11, 8:10 AM #4
So the following wouldn't work?

Quote:
<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 || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-07-11, 4:15 PM #5
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).]
- Wisdom is 99% experience, 1% knowledge. -
2004-07-11, 6:06 PM #6
Quote:
<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 || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-07-12, 6:31 AM #7
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?
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?
2004-07-12, 7:34 AM #8
Quote:
<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 || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-07-12, 10:52 AM #9
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?
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?

↑ Up to the top!