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"

My actor isnt spawning? c++

Hello, Ive just been adding some code and for some reason i get no errors but my actor isnt spawning?

I want my actor to spawn at my loot spawner actor but it isn't doing anything?

CPP alt text Header

alt text

Product Version: Not Selected
Tags:
cpp.png (19.2 kB)
h.png (2.7 kB)
more ▼

asked Nov 22 '14 at 12:46 PM in C++ Programming

avatar image

AndrewM47
267 68 61 80

avatar image AndrewM47 Nov 22 '14 at 07:01 PM

..........

avatar image Pierdek Nov 22 '14 at 07:20 PM

Why don't you use debugger? You have whole engine code:

Check if SpawnLocation/SpawnRotation is good? Check what SpawnActor do...

And if you want log if SpawnActor failed, you can use

 [Core.Log]
 LogSpawn=VeryVerbose

Put this config file entry to DefaultEngine.ini in your game module.

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

1 answer: sort voted first

SpawnActor does not guaranty actor spawn, for example if there no space to spawn it will fail, thats why it got bool return if it success. As Pierdek said try debugging, try breakpointing if spawn actully gets called and check location input

more ▼

answered Nov 22 '14 at 07:40 PM

avatar image

Shadowriver
36.7k 932 169 1111

avatar image AndrewM47 Nov 23 '14 at 12:04 PM

Oh its ok now, apparently it created a slot in the blueprint and it was set to spawn none by default and i changed it to spawn my object. But thats for the response anyway :)

(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