Amey.Banaye Posted July 5, 2015 Share Posted July 5, 2015 How do i work with TaskSequence Class in c# ? Link to comment Share on other sites More sharing options...
frodzet Posted July 5, 2015 Share Posted July 5, 2015 (edited) You can initialize a new instance of the class and from there work on it. For instance: TaskSequence playerTasks = new TaskSequence();playerTasks.AddTask.RunTo(new Vector3(-30.3f, 85.2f, 30.20f));// Add more tasks as you like. You can immediately set the handle of the ped to perform the task from the overloaded TaskSequence(int handle); or you can add the handle later, depends on how you want to use it :-) Edited July 5, 2015 by frodzet qwerasdzxc 1 Link to comment Share on other sites More sharing options...
Amey.Banaye Posted July 5, 2015 Author Share Posted July 5, 2015 Thank you Link to comment Share on other sites More sharing options...
69Angel69 Posted September 30, 2015 Share Posted September 30, 2015 I need some god damn help with this task sequence... so what I have is.... Dim Sequence as TaskSequence Sequence.addtask.Runto(new vector3(200.0,400.0,125.0) kay... then... whats the next part? how do I attach this to the guy? Link to comment Share on other sites More sharing options...
gtaVmod Posted September 30, 2015 Share Posted September 30, 2015 do research before asking primitive question 69Angel69 1 Link to comment Share on other sites More sharing options...
FowardElement Posted September 30, 2015 Share Posted September 30, 2015 var seq = new TaskSequence(); seq.AddTask.RunTo(posNear); seq.AddTask.FightAgainstHatedTargets(5000f); seq.Close(); critter.AlwaysKeepTask = true; critter.Task.PerformSequence(seq); I just copied this from another post called "Calling all critters". critter being the ped they used. Link to comment Share on other sites More sharing options...
69Angel69 Posted October 1, 2015 Share Posted October 1, 2015 Thank you.... SoOo... I actually got stuck on the overloaded Tasksequence(int pedhandle) I wasn't sure on how to make the overloaded sub or function. overloads is something new for me. So I was kinda hoping for some information on that. primitive question.. hah love it Link to comment Share on other sites More sharing options...
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