[DiscordArchive] That's not a script function, though, is it?
[DiscordArchive] That's not a script function, though, is it?
Archived author: tester • Posted: 2025-06-05T16:09:25.788000+00:00
Original source
♂️
Archived author: tester • Posted: 2025-06-05T16:10:15.366000+00:00
Original source
seemed pretty close in my tests and made the UI very snappy for updates when i was using it
Archived author: Natrist • Posted: 2025-06-05T16:16:39.090000+00:00
Original source
```C++
BOOL CCommand_DLoc (char const *command, char const *arguments)
{
unsigned long long activePlayer = ClntObjMgrGetActivePlayer();
CGPlayer_C *player = (CGPlayer_C *)ClntObjMgrObjectPtr(activePlayer,TYPE_PLAYER,__FILE__,__LINE__);
if (player) {
C3Vector pos;
player->GetPosition(pos);
ConsoleWriteA("%g,%g,%g", DEFAULT_COLOR, pos.x, pos.y, pos.z);
}
return TRUE;
}
```
Archived author: Natrist • Posted: 2025-06-05T16:17:30.823000+00:00
Original source
Here's what I mean. You can retrieve the unit guid in your script function and use the object manager to retrieve a pointer to that object and get its position from there on and compare it to that of the active player.
Archived author: tester • Posted: 2025-06-05T16:18:55.920000+00:00
Original source
yeah i understood what you meant, the distance return was a byproduct of what i was already working on, so i left it in for the fun of it, i only hit the distance number because i wanted to conver the 3d to 2d space coordinates for a UI
Archived author: Natrist • Posted: 2025-06-05T16:19:46.369000+00:00
Original source
I'm down to help with figuring out function names/prototypes if you need it.
Archived author: tester • Posted: 2025-06-05T16:25:20.340000+00:00
Original source
you're welcome to release any/all info you have for it for people to debug their stuff/update names
Archived author: tester • Posted: 2025-06-05T16:25:55.300000+00:00
Original source
i dont do too much RE atm so doesnt assist me much, but im sure itll suck me back in some time because ill want some random feature
Archived author: Widget • Posted: 2025-06-05T18:24:54.011000+00:00
Original source
like this?
2025-06-05_20-23-32_compressed.mp4
2025-06-05_20-23-55_compressed.mp4
Archived author: Natrist • Posted: 2025-06-05T18:26:49.209000+00:00
Original source
I guess so. ♂️