2
\$\begingroup\$

I have a KActor descendant, which is a carging shot, kind of like in R-Type. When it starts charging, I do projectile.SetBase(Pawn) in the PlayerController where it is spawned. I've checked in the debugger, and its base is in face the pawn.

But it does not move with the pawn.

I have done this before, where I base KActors on a moving entity, and it moved with them. I must have done something differently, but I can't figure out what it was. Looking at the old code, I just did SetBase like I am now.

Any ideas where I might be going wrong?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Try setting phys_none before basing the actor. \$\endgroup\$ Commented Feb 13, 2013 at 16:37
  • \$\begingroup\$ I told you that in chat after I got the answer from the UDK forum! :) \$\endgroup\$
    – Almo
    Commented Feb 13, 2013 at 16:49

1 Answer 1

3
\$\begingroup\$

The answer is that you have to SetPhysics(PHYS_NONE) before basing it. Apparently this is not necessary if you are basing it on another descendant of KActor, since they will then be handled at the same time in the Tick cycle.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .