PDA

View Full Version : Moving a staticmeshactor


steveb
10-22-2009, 08:43 AM
Hi,
I am trying to write some script that will move a staticmeshactor to anywhere that I want to place it.

The script is able to spawn and kill the actor, even get its current location. However, when I try to move it nothing happens. I have tried the move method, the SetPosition method, the Position method, ...

Any ideas on how this may be done? Thanks in advance for the help!

Steveb

Fuzz
10-22-2009, 09:49 AM
If you both can spawn and kill a StaticMesh, why not consider a move as a kill immediately followed by a spawn?

How about using an InterpActor instead? They can have matinee and belong to the DynamicSMActor class.

Aren't StaticMeshes supposed to be static? By definition it means that they can't be moved, IE position is not time-dependent.

steveb
10-22-2009, 10:45 AM
I thought about spawning and killing the actor, but it seemed pretty inefficient to do it that way. The reason that I am using the staticmeshactor is that I did it this way in 2004 and it worked really well.

I just tried it with the InterpActor and the move now works great! Thanks!

I did not even know that the InterpActor existed. Is there some reference that I should be looking at that describes the different types of actors and what they are used for? Thanks again, you saved me a huge amount of angst.


If you both can spawn and kill a StaticMesh, why not consider a move as a kill immediately followed by a spawn?

How about using an InterpActor instead? They can have matinee and belong to the DynamicSMActor class.

Aren't StaticMeshes supposed to be static? By definition it means that they can't be moved, IE position is not time-dependent.