x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Hey can anyone say me. How to make a command that shows the time you played in the server by typing /mt in chat? please help!

Hey can anyone say me. How to make a command that shows the time you played in the server by typing /mt in chat? please help!

Product Version: UE 4.20
Tags:
more ▼

asked Sep 07 '18 at 06:41 PM in Using UE4

avatar image

riasmuhammed784
6 2

avatar image mightyenigma Sep 07 '18 at 06:52 PM

Do you have a working chat system already? If so, recognizing the /mt command is pretty easy and you can just do a substring comparison and run the command instead of broadcasting a chat message.

The tricky part is probably getting the command itself to report your server play time.

You will need a way to record the time the player logged in (there is a blueprint node that gets the current time I think). Just store that in a variable when the player logs in. When the command runs all it has to do is chdck thay same get current time function and subtract the login time from that to get the amount of time you have been logged in, and then pop the message up on the client's screen.

Which of these parts are you having trouble doing?

(comments are locked)
10|2000 characters needed characters left

5 answers: sort voted first

Thanks alot helping me brother, And I was just thinking of a game (Not yet made) and thought will it work on ue4? Or unity

more ▼

answered Sep 07 '18 at 07:53 PM

avatar image

riasmuhammed784
6 2

avatar image mightyenigma Sep 07 '18 at 10:40 PM

oh yes you can totally do what you are describing no problem. it will work if you do it right.

I have to warn you though, if you are thinking of making an MMORPG dont try to do it by yourself. Thats a huge project! Butif you manage to do it by yourself then tell us how because then you are a genius

(comments are locked)
10|2000 characters needed characters left

Thank you soo much brother!!! I am alone :( I have 1 friend helping me (starter)

more ▼

answered Sep 08 '18 at 07:31 PM

avatar image

riasmuhammed784
6 2

(comments are locked)
10|2000 characters needed characters left

Hey, to make time counter, do the following steps in your BP;(I did it with a button in a Widget (Like Join button (you need to start the counter.... i did it with a button an my widget) (You can start the counter by the Player joined)

Here's how i did it: https://answers.unrealengine.com/storage/temp/253144-unbenannt.png

End resoult: https://answers.unrealengine.com/storage/temp/253145-unbenannt2.png

Btw, i'm working alone too... maybe we can work together ;) ^^

unbenannt.png (82.4 kB)
unbenannt2.png (758.9 kB)
more ▼

answered Sep 08 '18 at 08:27 PM

avatar image

Marzhmo
1 1

(comments are locked)
10|2000 characters needed characters left

Yes please bro we can work together! And I'll check it out the links you gave me <3

more ▼

answered Sep 09 '18 at 04:23 PM

avatar image

riasmuhammed784
6 2

avatar image Marzhmo Sep 10 '18 at 12:15 PM

How can we get in contact? I can help you with your other questions :D Im working with ue4 for now around 2 year's ^^

avatar image Marzhmo Sep 10 '18 at 12:18 PM

And i can help you to develope a game ^^

(comments are locked)
10|2000 characters needed characters left

Please download discord my tag ŚHÄĐØW ĶÏŁŁËŘ#5255

more ▼

answered Sep 10 '18 at 01:22 PM

avatar image

riasmuhammed784
6 2

avatar image Marzhmo Sep 10 '18 at 02:25 PM

I send you a friend request :D

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question