Getting sleepers list? (C#)
Discussion in 'Rust Development' started by bazuka5801, Jun 19, 2016.
-
Wulf Community Admin
You'd need to use reflection with C# to get it likely as it was private last I saw.
-
can you give me an example or direction
-
Wulf Community Admin
-
i know, but where allsleepingList? in baseplayer claas or other?
-
Wulf Community Admin
It's where you pasted in your first post. -
Err, no? I'm using it now, and a few plugins also use it without reflection, (plugins which add sleepers directly to the list, N-Teleportation, maybe?) it's just:Which is also what he mentioned above, it almost sounds like maybe it's not doing what he wants. Not sure.Code:
BasePlayer.sleepingPlayerList
-
It's public and static, so you won't need reflection.
At OP: What are you looking for specifically? Sleeping players and dead players as one? -
Wulf Community Admin
Hmmm, I think I mixed it up with Rust Legacy.
