Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Posts
    63

    Default Where is the server equivalent to CreateMuzzleFlash()?

    I added a muzzle flash to my third firing mode on my gun. The particle system it uses is the shock rifle combo. Works in standalone mode in first and third person. However, multiplayer doesnt show it at all. I believe the CreateMuzzleFlash() function is never called on the server, which makes sense as the server doesn't need to render it. However, what does the server call so that other players and myself can see the Muzzle Flash? Thanks.

  2. #2

    Default

    Don't you mean CauseMuzzleFlash()? That's a simulated event/function, so it should work fine in multiplayer.
    Try my game Never End, now on the App Store! For more info, see the release thread.

    My Blog: WillyG Productions - Your Premiere UDK Resource
    My YouTube Channel: WillyG Productions
    My Facebook Page: WillyG Productions

  3. #3
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Posts
    63

    Default

    Yeah, it is CauseMuzzleFlash(). I'm trying to do a similar thing that only plays when my weapon hits a specific pawn. The CauseMuzzleFlash() on a normal weapon is called on the client in multiplayer, not on the server, according to my log test. However, my function for the custom muzzle flash is called on the server and not the clients. I just figured out why. I put the call in the Proces**** function, which is only called on the server. I'll look for a way to call the function on the clients.

  4. #4
    Banned
    Join Date
    Feb 2011
    Location
    BXL/Paris
    Posts
    2,169

    Default

    reliable client function YourClientFunction()

  5. #5
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Posts
    63

    Default

    Great thanks, that works. Now somewhere along the way made it stop working in third person... Thanks for that though.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.