public static Task<Vector2i> Coroutines.ExInteractWith<T>(NetworkObject obj, bool holdCtrl = false, int timeout = 1000, bool autoEquip = true)
Attempts to interact with a game object of the requested type and reports the resulting interaction position. The character may move into range first. For collectible items, autoEquip set to true allows the game to equip the collected item automatically when permitted; false collects it without requesting automatic equipment.
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, allowed for the interaction.
autoEquip- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Whether automatic equipment may be requested for a collected item; ignored for other supported objects.
Returns: The reported interaction position, or DreamPoeBot.Common.Vector2i.Zero when the attempt fails.