Yeah, you basically send the signal by adding 1000 or whatever to your client's entity ID. So, if your client's entity ID was 264, the signal would be 1264. Then, the NPC that gets that signal knows that anything from 1000-3000 is a client ID and a signal to do something particular. It then subtracts 1000 from the signal ID and then has 264, which is the client's entity ID that it can no do just about anything with. If you wanted to have different responses, you could just add 1000 to the first signal, then something like 3000 to the second, 5000 to the 3rd and so on. And then you just check for ranges in EVENT_SIGNAL instead of an exact signal ID number, like I show in the example.
Lemme know if you have any problems or questions on it.
|