public static Task<bool> Coroutines.InteractWith(NetworkObject obj, bool holdCtrl = false)
Attempts to interact with a game object, such as an item, NPC, chest, portal or area transition. The character may move into interaction range when necessary. For WorldItems, this overload allows the game to equip the collected item automatically when the game permits it.
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.
Returns: True when the interaction was started successfully; otherwise, false.