Hmm, I found some interesting parts of the 1playerhud.hud file:
Hidden/Spoiler:
Moderator: Moderators
Ah, a shame. My best idea would be a brute-force approach of hooking into the lock-on key through ScriptCB_SetFunctionIdForButtonId (if the function works how I think it does), then looping through a list of entity IDs and checking if the entity meets requirements that'd make it "locked-on", though that's extremely hacky.Marth8880 wrote:Pretty sure you can't.
HUD events are just callbacks sent by C++ to the game's HUD manager to tell it when to do certain things, such as when to bring up the minimap display.
viewtopic.php?p=219713#p219713Marth8880 wrote:ScriptCB_SetFunctionIdForButtonId? Where have you seen that?