SmartObjectSubsystem -> Get Slot Transform giving relative instead of world transform

As the title says “GetSlotTransform” is giving relative instead of world transform like the description says in the documentation.

The weird thing for me is it is just happening with one of my smart objects. But I didn’t do anything different compared to the others I have.

1 Like

Hey @Deeroy08!

So if it’s working fine on other smart objects, just not this one… Then it’s not the node, because the node in a vacuum is going to be the same as the other nodes in a vacuum.

Maybe show the Hierarchy of one of the ones that is working fine vs this one that isn’t? Could be a hierarchy issue.

Also, try deleting the “Get Slot Transform” node and creating it again by pulling off of the Smart Object Subsystem node. Sometimes you can end up with a different node accidentally, depending on where you’re pulling it from.

Other than that, we’re just going to have to see a lot more code here for context reasons. :slight_smile:

Hope that helps get you moving!

1 Like

Hi @Mind-Brain,

Thank you for your reply. Much appreciated.

I’ve found the issue.

For a little bit more context this smart object is getting attached to an AI Character, before the “GetSlotTransform” is called. Looking at the code behind the node, it supposedly applies a transformation with the owner transform to the return result.

I guess it wasn’t being applied. Decided to look at the way I was attaching the spawned actor the smart object belongs to, and I was using transform space as “RTS Component” instead of “RTS World”.

Switching fixed the issue. :sweat_smile:

Once again thank you for your reply.

Kind Regards

1 Like