Jump to content

Recommended Posts

I'm using:

inst.entity:SetParent(parent.entity)

but this causes inst to rotate when parent does, which I don't want. Is there any way to avoid this, or a workaround?

inst, in my case, is an entity based on "firefighter_placement" asset, using "ANIM_ORIENTATION.OnGround" and "LAYER_BACKGROUND".

Edited by Bumber64

I don't think you can directly stop rotation. But if you update your child's rotation with the negative rotation of the parent whenever the parent rotates. That should counter it out. I am not sure if there is a listenforevent or fn hook for rotation baseline however. Which makes updating tricky.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...