I’m following the various tutorials to make AI characters sit on things utilizing Smart Objects with Gameplay Behavior. This is all working fine, and AIs walk around and claim Smart Object slots to sit in. Now, of course the Player Character should be able to sit in the same slots. And while the docs explicitly say that Smart Objects can be used with Players, I can’t seem to find a single tutorial doing this. So:
- If we control a character, it’s likely that we already know the slot to interact with, e.g. because the player clicked on it. So there’s no point in using “Find Smart Objects”. What other ways are there to look up and get hold of the Slot Handle, e.g. when we already have the Actor and Smart Object component in it?
Ignoring the ugly implementation, I’ve played with Find Smart Objects from the player, and in theory I can find the Slot Handle by making the search box small and hoping for the best, but even then I’m unsure how to proceed:
- For an AI, we can use “Move To and Use Object with Gameplay Behavior” or “Use Claimed Smart Object”, but that requires an AIController. What is the version with a regular Player Controller? From having the slot handle, I don’t even see a path to obtaining the associated Gameplay Behavior. From there it seems possible to call “Trigger Behavior”, but we would still need to implement the release of the slot. I’d expect there to be a similar convenience method as for AI.
Any help or link is appreciated, including speculation. This seems fairly new and partially experimental, so maybe the docs are lagging behind.