Page 1 of 1

Give message to an individual player?

Posted: Fri Jul 06, 2007 11:29 am
by Ace_Azzameen_5
I am familiar in using the "ShowMessageText("level.ace.campaigncw.objectives.2ndObjYouFindCOnsole", REP)" command in lua script for giving a message to an entire team. Has anyone figured out how to deliver messages to individual players, as per Award power ups?

Or any other targets for messages, say, everyone?

Alternatively, is there a way for LUA to grab an idividual human characters player name and then ShowMessageText it? So for example: "[GT]Ace Azzameen 5 has won the race!" could be output?

Posted: Fri Jul 06, 2007 3:57 pm
by squid11
This might help a little, but Id bet it is possible to have a Human Player Showup to an entire team. IE Ace has won the race, seeing as how when players die, leave, and join it sais "Ace has Joined" or whatever. I wouldnt know how to though. If i cant find something in the docs I look through similar situations in the basic maps, and try to copy.

Re: Give message to an individual player?

Posted: Fri Jul 06, 2007 11:16 pm
by [RDH]Zerted
Ace_Azzameen_5 wrote:Or any other targets for messages, say, everyone?
If you want to send everyone a message, just don't include the team number when calling ShowMessageText().

As for adding custom text to an ingame message, I wish. There is a small chance its possible, you will need to look at the ShowMessageText() and string entries which have % in them.

It is possbile to capture a player's name, but I only know its possible to output it to the error log.