1. The command
    Code:
    Effect.server.Run("assets/prefabs/locks/keypad/effects/lock.code.denied.prefab", player.transform.position);
    reproduces the sound of all nearby, but how to play the sound to only one player?
     
  2. Wulf

    Wulf Community Admin

    There isn’t a way to send it to only one player that I am aware of.
     
  3. Hint:
    Code:
                Net.sv.write.PacketID(Message.Type.Effect);
                effect.WriteToStream(Net.sv.write);
                Net.sv.write.Send(new SendInfo(player.net.connection));
     
  4. Wulf

    Wulf Community Admin

    That’s new, never seen that for effects before.
     
  5. If you or anybody else wants to dig more on how effects actually work - take a look at EffectNetwork.

    UPD: Btw there are new method has added it seems: Send(Effect, Connection) it should do all the job.
     
  6. Very interesting.... Never saw that one before.
    what is that effect var? What does it contains?
    [DOUBLEPOST=1514211788][/DOUBLEPOST]
    Got it. Very interesting way....
    CAn't say that I was really looking for it, but still - good to know =)