[.NET] Script.Wait(1000) without freezeing whole script.
-
Hello,
Can i do sth similar to Script.Wait(1000) that is not freezeing my script? Im trying do to sth like that:medic.Ped.Task.PlayAnimation("mini@cpr@char_a@cpr_str", "cpr_pumpchest", 8f,-8f, 4000, AnimationFlags.Loop, 0f);
Wait(4000);
medic.Ped.Task.PlayAnimation("amb@medic@standing@kneel@exit", "exit", 8f, -8f, 4000, AnimationFlags.None, 0f);But if there is another ped that is doing this then he is waiting for first ped to finish
-
Why not use a task sequence
-
@JustDancePC Oh i didn't know bout that i'll try,. Thanks!
-
@JustDancePC It's not that but i solved it with Stopwatch
-
@Hermes1312 when you solve an issue, it would be helpful if you posted the solution in more detail so the whole community could benefit.
-
@JohnFromGWN I dont think that what i did is correct but i can share i did it like this: GitHub
-
@Hermes1312 Well if it worked for you, good. Thanks.