Serenitys Posted July 11, 2022 Posted July 11, 2022 (edited) Hello everyone. The third day I'm trying to get peds to perform tasks sequentially. uint newSequence = 1512412; RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.OpenSequenceTask, new object[] { newSequence }); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.TaskVehicleDriveToCoord, new object[] { ped.Handle, veh.Handle, padPosition.X, padPosition.Y, padPosition.Z, 30, 0, veh.Model, (int)AI.DrivingMode.Rushed, 30, 0}); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.TaskVehicleDriveToCoord, new object[] { ped.Handle, veh.Handle, padPosition.X, padPosition.Y, padPosition.Z, 1, 0, veh.Model, (int)AI.DrivingMode.Rushed, 1, 0 }); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.CloseSequenceTask, new object[] { newSequence }); RAGE.Game.Invoker.Invoke(RAGE.Game.Natives.TaskPerformSequence, new object[] { ped.Handle, newSequence }); If you call them sequentially without using TaskSequence, then only the last task is executed. If you use TaskSequence (the example above), then Ped refuses to do anything at all. Please tell me how to make the tasks run sequentially. P.S References to ped and vehicle are correct, checked P.S.S Sorry for my bad english) Edited July 11, 2022 by Serenitys
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now