1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Help making an entity/effect appear on a server

Discussion in 'Modding Help' started by Frikman, Aug 5, 2016.

  1. Frikman

    Frikman Bison Rider

    Messages:
    162
    Alright, so here's the deal. With the help of Rob I've managed to customize and work on a new class, which can teleport, and after many hours I managed to make the teleport create a fire trail/effect that sets stuff on fire.


    The thing is, it works only when I run the game via "runlocalhost", because if I host a game with the class everything but the teleport effects work (as shown here). Any idea of what could be causing it?
     

    Attached Files:

  2. makmoud98

    makmoud98 You are already DEAD Forum Moderator Staff Alumni Tester

    Messages:
    586
    this is because using getControls().isKeyJustPressed( KEY_KEY_R ) is clientside (inside of Pyroteleport.as). like geti said in the other thread, you need to sync it from client to server. when you press that button, the server never returns that if statement as true, so the firewalk blob is never created because you cant create blobs on client. I am willing to bet that "Can't create blobs on client" is spammed in console every time you teleport
    [​IMG]

    now, im not sure if this is how you would do it exactly, but you can try to sync it like this:
    [​IMG]
     
  3. Frikman

    Frikman Bison Rider

    Messages:
    162
    Thanks for the quick reply. It looks like it'll take me some time to get it right, as I can't get it to sync properly. On the mean time using the taunts key does the job, so I'll keep trying
     
    PUNK123 and makmoud98 like this.