Give message to an individual player?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Give message to an individual player?

Post 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?
squid11

Post 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.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Give message to an individual player?

Post 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.
Post Reply