public static Task<bool> Coroutines.InteractWith<T>(NetworkObject obj, bool holdCtrl = false, bool autoEquip = true)
Attempts to interact with a game object of the requested type. The character may move into interaction 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<bool>No current DPB page is linked for this built-in, external, generic or compatibility-only 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.
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: True when the interaction was performed; otherwise false.