# How can I get number of players online?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [October 1, 2016, 5:53pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976 "2016-10-01T17:53:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [October 1, 2016, 5:53pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/1 "2016-10-01T17:53:26Z")

</div>

Hello guys!

How can I get the number of players online on my server into my mod?

Thx

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 1, 2016, 8:51pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/2 "2016-10-01T20:51:54Z")

</div>

[![](https://i.imgur.com/CE3l67C.png) ](https://i.imgur.com/CE3l67C.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [October 2, 2016, 7:50am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/3 "2016-10-02T07:50:43Z")

</div>

Thx! So this one takes only the “currently online players”? Not “all the players which have a character on the server”? 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_138c2332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_138c2332](https://forums.unrealengine.com/u/anonymous_user_138c2332)\
**Post date:** [October 2, 2016, 1:11pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/4 "2016-10-02T13:11:21Z")

</div>

You’d have to query your database for that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_621537581](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_621537581](https://forums.unrealengine.com/u/anonymous_user_621537581)\
**Post date:** [October 6, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/5 "2016-10-06T15:39:57Z")

</div>

Tested and approuved. It works for the number online players.

Thx!

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 6, 2016, 8:58pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/6 "2016-10-06T20:58:16Z")

</div>

And how can you display it eg in a widget?

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 9, 2016, 4:30am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/7 "2016-10-09T04:30:44Z")

</div>

Nobody knows how to display it in a widget

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 9, 2016, 5:40pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/8 "2016-10-09T17:40:10Z")

</div>

Create a variable in your widget, then in whatever calls the widget:

Run the player count function  
Create widget  
Use return value to set value inside of widget  
Add to viewport

Make sure in the widget your text box is promoted to a variable and there is a Get Text function for it.

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 9, 2016, 10:54pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/9 "2016-10-09T22:54:47Z")

</div>

Thanks for the reply, but could you please explain it somewhat, I am still a beginner.  
I already have a widget that you can open with F1.

Only now I do not know exactly what you mean.

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 10, 2016, 5:41am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/10 "2016-10-10T05:41:41Z")

</div>

[![](https://i.imgur.com/glZ9Zzx.png) ](https://i.imgur.com/glZ9Zzx.png)

For the widget, click your textbox then on the right go down to Contents \> Text and create a binding for it. It’ll pull up the graph. Just get the variable and return the node.

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 11, 2016, 1:14am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/11 "2016-10-11T01:14:54Z")

</div>

Thanks for the help, I can not go any further.

![e38a4408c66e8c1ca276e040577f8a0a08429e2f.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

This is my bind in the widget

![60cf530e8a6c20284f5816a74fc7f780a3a9bedd.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![3806100497c00ad62031cded36a55427c5de79ed.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 11, 2016, 3:00am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/12 "2016-10-11T03:00:59Z")

</div>

Top left of picture #1, press “+Variable” and then in the details window at the bottom there, switch it to an integer or string.

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 11, 2016, 4:22am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/13 "2016-10-11T04:22:15Z")

</div>

How do I get the “set”?

 ![Unbenannt.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/4/c412240daf7641b33a41e1518c6e92f8219ee0d5.png)

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 11, 2016, 5:41am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/14 "2016-10-11T05:41:02Z")

</div>

The return value from Create Widget, the blue dot. Drag it out and it gives you access to all variables in the widget. Just type “Set output”

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 11, 2016, 3:16pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/15 "2016-10-11T15:16:55Z")

</div>

When I enter set output appears with me nothing

![d5b00ee8ecb3940566225b9176d7bda6a0764475.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 11, 2016, 5:15pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/16 "2016-10-11T17:15:05Z")

</div>

You have to create the variable Output inside the widget. I meant to say picture 3 of that post, the one of the Get Text function

> [@Huston850;607203](#):
>
> Top left of picture **#3** , press “+Variable” and then in the details window at the bottom there, switch it to an integer or string.

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 11, 2016, 5:45pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/17 "2016-10-11T17:45:35Z")

</div>

Thanks, just now the widget does not open anymore

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 11, 2016, 7:32pm UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/18 "2016-10-11T19:32:01Z")

</div>

Did you remember to add to viewport?

---

<div class="post-metadata">

**Author:** ![RG\_Puma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RG\_Puma](https://forums.unrealengine.com/u/RG_Puma)\
**Post date:** [October 12, 2016, 12:34am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/19 "2016-10-12T00:34:52Z")

</div>

Yes

 ![player5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/5/a59ef68cb0b589a97ab1f5df6fbfec0ed8d9fc11.jpeg)

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [October 12, 2016, 12:49am UTC](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976/20 "2016-10-12T00:49:19Z")

</div>

You did forget to connect the arrows, though. The graph stops at create widget. You have to reattach it to set output

[Next page](https://forums.unrealengine.com/t/how-can-i-get-number-of-players-online/74976.md?page=2)
