Hi,
how do i fill TargetUnit. It says it takes the name of the unit as a parameter but analyzing the function with IDA results in an int as a parameter. How do i feed the function corretctly. I need to know that since i want to call the function using a dll. Thats Ida's Pseudocode:
Code:
int __cdecl TargetUnit(int a1)
{
char *v1; // edi@1
int v2; // eax@1
__int64 v3; // qax@1
v1 = (char *)sub_801D20(a1, 1, 0);
v2 = sub_7CAFF0(a1, 2, 0);
LODWORD(v3) = sub_4BFB30(v1, 8, 0, v2, 3.402823466385289e38, 1);
if ( v3 )
sub_4C5450();
return 0;
}
Lets say the function takes the UnitID as a param, how do i get this ID? ty for all answers.