1.16.1 · Index · Add Address · Statistics · Reference · About

 ?  Address 0x006283F8
 ?  Player ID 161829 (Byte Offset: 00)
 ?  Version 1.16.1
 ?  Name Player Last Unit Pointers
 ?  Size 4
 ?  Length 12
 ?  SC:Remaster Backed By Code
 ?  Description Edited by PereC, 2021-12-07: The pointer of the player's last created (alive) normal unit. Also the head of the singly linked list of the player's units. If you wanna loop through a player's units, you should start from this pointer, then use CUnit.nextPlayerUnit as 'next' pointer. ```eps function loopPlayerUnit(player: TrgPlayer) { const FIRST_PLAYER_UNIT = EPD(0x6283F8); var ptr, epd = cunitepdread_epd(FIRST_PLAYER_UNIT + player); while (ptr >= 1) { // place logic here (built-in function EUDLoopPlayerUnit(player) yields (ptr, epd) here) EUDSetContinuePoint(); // CUnit+0x6C: nextPlayerUnit ptr, epd = cunitepdread_epd(epd + 0x6C/4); } } ```
Edit
Links: full · short · direct