The command
reproduces the sound of all nearby, but how to play the sound to only one player?Code:Effect.server.Run("assets/prefabs/locks/keypad/effects/lock.code.denied.prefab", player.transform.position);
Play the sound to only one player?
Discussion in 'Rust Development' started by misha1979, Dec 24, 2017.
-
Wulf Community Admin
There isn’t a way to send it to only one player that I am aware of.
-
Hint:
Code:Net.sv.write.PacketID(Message.Type.Effect); effect.WriteToStream(Net.sv.write); Net.sv.write.Send(new SendInfo(player.net.connection));
-
Wulf Community Admin
-
UPD: Btw there are new method has added it seems: Send(Effect, Connection) it should do all the job. -
Very interesting.... Never saw that one before.
[DOUBLEPOST=1514211788][/DOUBLEPOST]
CAn't say that I was really looking for it, but still - good to know =)