Announcement

Collapse
No announcement yet.

Triggering

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Triggering

    I am making my own small server log mutator and I need a little bit of help.
    How do I go about triggering an event when:
    A player joins +
    A player leaves

    the kind of thing i am looking for is.

    function onplayerjoin()
    {
    log("Player: "playername" has joined");
    }
    function onplayerquit()
    {
    log("Player: "playername" has quit");
    }

    Could anyone help me out please?

    #2
    ModifyLogin and NotifyLogout in the Mutator class.

    Comment


      #3
      Instead of ModifyLogin, you might wanna use:

      Code:
      function bool IsRelevant(Actor Other, out byte bSuperRelevant) {
        if (PlayerController(Other) != None) {
          //do stuff
        }
      
        Super.IsRelevant(Other, bSuperRelevant);
      }
      Do take notice that nothing has been set in the PlayerController actor yet. Even the GUID isnt known yet.

      Comment


        #4
        I tried the ModifyLogin() and NotifyLogin() and they worked great, EXACTLY what I needed, thanks for the help *is very happy now*

        Comment


          #5
          Is it possible to trigger an event when a player sends a console command.
          E.g:

          function player_consolecommand_Say()
          {
          Log("Player:"@playername@"has sent a Say command saying:"@whattheysaid);
          }

          Comment

          Working...
          X