SimCity like building placement

Sory for the delay in answering - ive been moving house. Sory to hear this problem is still unresolved.

Ill see if I can help you more,

Looking at the reported error message it would seem it is still a blue print error. specificaly in the ‘mycharacter blueprint’. Assuming you have created a blue print from your c++ class of course the error could be in the c++ code too.

It would seem by the error that you are spawning actors in the constructor of your my character class. According to the documentation this is an unsafe operation (ie may cause errors). It is recomended to do the spawning in begin play or on some input event that will be called after begin play.

Try structuring your code like this: (pseudo code)

constructior
{
set up variables/structs for objects that will be spawned.
}

begin play
{
instanciate any internal objects needed during play.
}

setupplayerinputcomponent
{
define function for mouse clicks
}

leftmousepressed
{
upon conditions you want to
{
spawn ‘building’ actor.
set building spawned bool = true;
}
}

tick
{
if building spawned bool = true
{
get mouse location
set building actors location
}
}

If youre still getting errors post up your code and Ill have a look.

Oh and the question of can you ignore errors - best practice is to never ignore errors because everythign you make from there on may have flaws that you dont know about.