Attempted to get the task_combat working against online players, here's what I tried:
Code:
for (player = 0; player <= ONLINEPLAYERS; player++){
DebugBreak("500");
if(DOES_CHAR_EXIST(zombies[i]) && DOES_CHAR_EXIST(players[player].ped)){
int tehzombie;
DebugBreak("501");GET_NETWORK_ID_FROM_PED(zombies[i], &tehzombie);
DebugBreak("502");SET_NETWORK_ID_CAN_MIGRATE(tehzombie, true);
DebugBreak("503");REQUEST_CONTROL_OF_NETWORK_ID(tehzombie);
while(!HAS_CONTROL_OF_NETWORK_ID(tehzombie)){
tick++;
DebugBreak("504");REQUEST_CONTROL_OF_NETWORK_ID(tehzombie);
if(tick >= 250){
//unable to communicate with zombie
DebugBreak("505");continue;
}
DebugBreak("506");WAIT(0);
}
DebugBreak("507");TASK_COMBAT(zombies[i], players[player].ped);
}
}
I didn't see any change.