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 → Using sendmessage
Using sendmessage
2001-04-26, 3:47 PM #1
I'm trying to send a message from kyle.cog to weap_saber.cog. What I need to know is how to define the weap_saber cog. KyleCog is defined with GetThingClassCog(player), but that won't work for the saber cog - or will it?

Thanks,
-SaberMaster


[This message has been edited by SaberMaster (edited April 29, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-04-26, 4:25 PM #2
just use sendtrigger, it's easier. sendmessage also lags in mp.
2001-04-26, 6:02 PM #3
In your symbols section, all you need is:

cog sabercog=weap_saber.cog

Then as part of your code:

SendMessageEx(sabercog, message, flex param0, flex param1, flex param2, flex param3);

Raynar



------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis
2001-04-27, 5:00 AM #4
Or if your too lazy to define it in symbols... [http://forums.massassi.net/html/wink.gif]

SendMessageEx(GetInvCog(player, 10), message, flex param0, flex param1, flex param2, flex param3);
- Wisdom is 99% experience, 1% knowledge. -
2001-04-27, 4:59 PM #5
Thanks for your replies [http://forums.massassi.net/html/smile.gif] I think I've got it now [http://forums.massassi.net/html/biggrin.gif]

------------------
Warning! User is not Windows compatible.

[This message has been edited by SaberMaster (edited April 28, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!