Page 1 of 1

Is there a way to get the Player Name from scripting?

Posted: Wed Mar 21, 2007 3:18 am
by Baak
I can get to Team 0, Team 1, etc., from within a map script but I'd *really* like to be able to get the Player/Team name as well.

Is this possible? If so, how is it done?

I have been unable to track it down...



Thanks in advance! :)

Posted: Wed Mar 21, 2007 3:51 pm
by Myrd
If it were possible, some mapmakers would put script like the following on their maps:

TUNI(player_name_is, MyName)
ON SUCCESS: GIVE MY UNITS 2X HEALTH

Posted: Wed Mar 21, 2007 4:18 pm
by Death's Avatar
sweet.

Posted: Wed Mar 21, 2007 6:27 pm
by Baak
Myrd wrote:If it were possible, some mapmakers would put script like the following on their maps:

TUNI(player_name_is, MyName)
ON SUCCESS: GIVE MY UNITS 2X HEALTH
Heh - figured there was a good reason not to have it, but very pleased to know not to search further.

Thanks. :)