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 Sendtrigger
Using Sendtrigger
2001-05-20, 1:48 PM #1
I'm trying to send a local sendtrigger and I can't figure out how to define the destination of the trigger. Here's what the jkspecs says:

Quote:
<font face="Verdana, Arial" size="2">The destination can be either a player (local or remote on the network) reference or -1. If it is -1 the message is broadcast to ALL the connected players.</font>


So I tried:
player = GetLocalPlayerThing();
Sendtrigger(player, 101, 0, 0, 0, 0);


And it didn't work. It would do fine if I changed player to -1, but it just doesn't work this way. What am I doing wrong?

------------------
The enemy is in front of us, behind us, to the left, and to the right. This time they won't get away.

[This message has been edited by SaberMaster (edited May 20, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-05-20, 8:12 PM #2
Use ...

SendTrigger(-1, 101, -1, -1, -1, -1);

If you want to send the infromation about the player then use ..

SendTrigger(-1, 101, player, -1, -1, -1);
2001-05-21, 5:55 AM #3
I meant to send the trigger only to the player. IE, not broadcast to other players in MP.

------------------
The enemy is in front of us, behind us, to the left, and to the right. This time they won't get away.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-05-21, 10:43 PM #4
That should work.
Or you can use SendMessage instead.

------------------
http://millennium.massassi.net/ - Millennium
2001-05-22, 4:41 AM #5
Ok. I'll work with it some more. Thanks guys [http://forums.massassi.net/html/wink.gif]

------------------
The enemy is in front of us, behind us, to the left, and to the right. This time they won't get away.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!