public static Task<Vector2i> Coroutines.ExInteractWith(NetworkObject obj, bool holdCtrl = false, int timeout = 1000)
Attempts to interact with a game object and returns the character's interaction position. The character may move into range when necessary. For WorldItems, this overload allows the game to equip the collected item automatically when the game permits it.
Task<Vector2i>A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.
Parameters
obj- Parameter type:
NetworkObjectThe game object to interact with.
holdCtrl- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Whether to hold the Control key during the interaction.
timeout- Parameter type:
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.The maximum time, in milliseconds, to wait for the interaction.
Returns: The interaction position when successful; otherwise, DreamPoeBot.Common.Vector2i.Zero.