Hey guys! Recently got into developing and hope to eventually, after getting a little better release a callout pack.
Today I've spent a few hours on some code and I'm not exactly sure why I'm having so many issues with it. It could just be something obvious and my lack of experience is making me miss something important, but I'm not able to find what is wrong with my code.
Any help would be amazing!
The issue is shown below this that video:
Here is the the only part I think I could have messed up in the code:
if (Game.LocalPlayer.Character.DistanceTo(Suspect.Position) < 20f)
{
Suspect.Tasks.FightAgainst(Game.LocalPlayer.Character);
}
else
{
Suspect.Tasks.Wander().WaitForCompletion(20000);
}
if (Suspect.IsDead || Suspect.IsCuffed)
{
End();
Game.DisplayNotification("Dispatch we are Code 4, No additionals needed");
Functions.PlayScannerAudio("ALL_UNITS CODE_4_ADAM_NO_ADDITIONAL");
}
Again, thanks for any help and if anyone would like to help me further, send me a pm or let me know in this forum and i'll send you the entire thing.
I have these set as that as well.
Suspect.IsPersistent = true;
Suspect.BlockPermanentEvents = true;