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"

Object not movable [cpp]

Hey all,

When creating my Actor I used the following constructor which is referenced in the header

 ACPP_Flashlight::ACPP_Flashlight(const class FObjectInitializer& ObjectInitializer) 
     : Super(ObjectInitializer)
     Mesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("Mesh"));
 RootComponent = Mesh;

 LightSpot = ObjectInitializer.CreateDefaultSubobject<USpotLightComponent>(this, TEXT("LightSpot"));

When i Create the BP and move it into the editor this problem persists when moving the object, both the mesh and Light stay at 0,0,0 position in world,

alt text

Product Version: Not Selected
prob.png (216.1 kB)
more ▼

asked Feb 06 '15 at 01:23 AM in C++ Programming

avatar image

3 1 3 5

avatar image spazchicken Feb 06 '15 at 01:48 AM

Is it "moveable" or "static"?

avatar image NeverMidnightGames Feb 06 '15 at 01:56 AM

It should be static, moving with the player. I have tried both but it is not moving either way.

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

1 answer: sort voted first

oh i had something like his happen the attached object would just sit there no matter where i moved the main object in the blueprint. Try creating a new blueprint and attach it to the class ....can't remember is a corrupt blueprint caused it or not.

If not, try witching the class to a pawn instead of an actor .

more ▼

answered Feb 06 '15 at 03:00 AM

avatar image

447 35 20 53

(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