1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Writing stuff to the chat window to a certain person?

Discussion in 'Programming' started by MudBlud, Mar 7, 2002.

  1. MudBlud

    MudBlud New Member

    Joined:
    Mar 7, 2002
    Messages:
    21
    Likes Received:
    0
    hi, how do i write messages like "Hello "$playername to the thing where the chat comes up...im not quite sure what its called...how do i make it only appear to playername ?


    Thanks in advance!


    Mud
     
  2. Brood_of_Evil

    Brood_of_Evil Selene's martyr

    Joined:
    Nov 3, 2001
    Messages:
    147
    Likes Received:
    0
    It would be:

    Code:
    BroadcastMessage("Hello "$SomePawn.PlayerReplicationInfo.Name);
    
     
  3. Raeled

    Raeled Feuer Frei!

    Joined:
    Jul 1, 2001
    Messages:
    161
    Likes Received:
    0
    just a small correction:

    Code:
    BroadcastMessage("Hello "$SomePawn.PlayerReplicationInfo.PlayerName);
    
     
  4. Captain Kewl

    Captain Kewl I know kewl.

    Joined:
    Feb 13, 2001
    Messages:
    794
    Likes Received:
    0
    I thought BroadcastMessage... broadcasted messages. Wouldn't something like

    Code:
    SomePawn.ClientMessage("Hello "$SomePawn.PlayerReplicationInfo.PlayerName);
    
    Be more appropriate, since we only want it to appear for SomePawn?
     
  5. MudBlud

    MudBlud New Member

    Joined:
    Mar 7, 2002
    Messages:
    21
    Likes Received:
    0
    ok, thanks guys!
     

Share This Page