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"

Unsure about class functionalitys

Hey guys. I will keep my questions short and 'simple' :D

  1. Where do I store all the player data, like the buildings a player owns, his relationships to other players, his combat units and so on? Everything in a player State instance?

  2. How do I handle player interactions with the world? Currently I use the level blueprint, but actually I am more of a programmer than a scripter. Also, some events need to access functions of classes which are not inheriated from any UObject class. Generally I am much much faster and efficient with code than with blueprints, except for some not-so-complex-stuff like the level Movement, which is actually way easyer to implement with blueprints. But is there a way to write a class, whose functions are calles when a player triggers a certain event? Like [click callback] -> [get clicked actor] -> [decide what to do depending on certain circumstances] -> do internal game stuff -> send feedback to player

If someone could clear things up for me a little bit I would really appreciate that!

Greetings! :)

Product Version: Not Selected
more ▼

asked Mar 10 '15 at 11:16 PM in Using UE4

avatar image

96 8 17 26

avatar image jasonsmith32 Jul 28 '19 at 08:18 PM

Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one. https://vidmate.onl/ https://messenger.red/ https://showbox.run/

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
  1. Yes, store it in a PlayerState.

  2. PlayerController should be used to handle user input.

more ▼

answered Mar 15 '15 at 04:35 AM

avatar image

477 34 18 47

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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