CGGameObject_C::TryUse
function · objectlayer · orchestration
- Address
0x5f86b0· 171 bytes, up to0x5f875a- Meaning
- Uses a game object in range, else walks to it or shows the use error
- Confidence
- verified, proof one
- Finding
- objectlayer/gameobjects#using-a-game-object
Finding: Using a game object in objectlayer: game objects
For an interactable object, the object's slot 24 sets the player's auto-loot byte from its argument and interacts: when usable, the handler's slot 7 uses it; out of range, except a fishing node, the player walks to the handler's range, never the opening spell's, and tries again on arrival; any other refusal shows its error. The default use casts the lock's opening spell with its item on the object, or, with no spell, sends 0xb1 with the object's GUID. A lock the player cannot open shows why.
The derivation is in the doc.
Callers 2
- CGGameObject_C::Interact objectlayer
- CGUnit_C::CompleteInteractMove objectlayer
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- CGUnit_C::WalkToGameObject objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.