Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
dale0404

player name in sidechat

Recommended Posts

Gents, I have some triggers set out over a Map reading course and I want the triggers to say "<playername> has passed WP1" or something to that effect.

How do I get the playername that has passed the waypoint to show in the playerchat or Hint?

I know it something to do with the %1 variable but I cant get the syntax correct. Anyone help please?

Cheers

Dale

Share this post


Link to post
Share on other sites

player sideChat format["Your name is %1", name player]

:rolleyes:

Share this post


Link to post
Share on other sites

for singleplayer or for multiplayer ?

Buliwyfs code will work nicely, but only for singleplayer. For MP you'll have to store the playername of the person who activated it in a publicvariable and have the sideChat script executed on all Clients.

Share this post


Link to post
Share on other sites

Dont know off hand how well mp this will work but create a trigger activated by the side or anybody and condition this. Onactivation put

nameofunit sidechat format ["Player %1", thislist];

where nameofunit is put the name of a unit on the map like instructor or something. Try it out should work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×