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?
Give message to an individual player?
Moderator: Moderators
-
Ace_Azzameen_5
- Jedi

- Posts: 1119
- Joined: Sat Apr 23, 2005 8:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
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.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Give message to an individual player?
If you want to send everyone a message, just don't include the team number when calling ShowMessageText().Ace_Azzameen_5 wrote:Or any other targets for messages, say, everyone?
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.
