EEex_GetActorIDCursor

EEex_GetActorIDCursor()

Returns actor id that is currently under the cursor (mouse pointer)

Parameters

None

Return

Returns a DWORD value representing actor id or 0 if no actor is under the cursor

Notes

Reads

Uses m_visibleArea to read array index of CInfGame.m_gameAreas[12] (offset 0x3DA4). CInfGame.m_gameAreas[12] is an array of pointers to CGameArea structures.

Reads offset 0x21C of CGameArea and reads the value. If the value is -1 it will return 0, otherwise returns the value read.

Example

local curid = EEex_GetActorIDCursor()

See Also

EEex_GetActorIDShare, EEex_IterateActorIDs