I’m trying to create a small prototype, where some Mass Entities wander around a ZoneGraph path, and occasionally interact with a Smart Object if one is available.
The AI is driven by StateTree, which has some prebuilt Tasks for working with Smart Objects.
My main issue is, I can’t get the Find SmartObject Task to actually find any objects. By looking at the source code, I can tell the task does some ZoneGraph based query, where it tries to find a SmartObject accessible through the ZoneGraph path the Entity is currently on, but it always returns 0 results when looking at it through the Visual Logger.
For the Smart Object, I tried both using the Generic Smart Object actor that comes prebuilt with the plugin, and a custom one. I added a SmartObject component and a SmartObject Zone Annotation component, setting the Affected lane to the one used by the Path (a tag I named ‘Pedestrian’), and setting the Behavior Tag to a custom ‘SmartObject’ tag. In Project Settings, in the Mass > MassSmartObject section, I set the SmartObject tag to the one I created, and toyed around with different values for the query radius, but no luck.
The SmartObject is using a Smart Object Mass Behavior Definition on all Slots, and it is getting recognized by Mass since it’s creating an Entity for each Slot (but no Entity for the object itself, tho I don’t think that’s needed).
I’ve tried looking at the CitySample Unreal released but can’t find anything they’re doing that I’m not.
Has anyone had any luck doing something like this?