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:
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).]
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).]