Wiebrendh Posted August 12, 2014 Share Posted August 12, 2014 So, i have 3 peds in my LocalPlayer group, but i want 2 of those peds to stay outside they bank and shoot on the police. The other one follows me to the bank save. I tried using Ped.SetDefensiveArea on them, but that does not work.. Anyone knows how i can make this? Thanks in advance Link to comment Share on other sites More sharing options...
Jitnaught Posted August 12, 2014 Share Posted August 12, 2014 Ped.Task.GuardCurrentPosition? Link to comment Share on other sites More sharing options...
Wiebrendh Posted August 12, 2014 Author Share Posted August 12, 2014 Ped.Task.GuardCurrentPosition? Hmm, that could be possible. Then the ped has to run to a location, and when he arrives i set him to defend current position. Thanks, hope it will work Link to comment Share on other sites More sharing options...
Jitnaught Posted August 12, 2014 Share Posted August 12, 2014 Use TaskSequence and Ped.Task.PerformSequence to do multiple tasks. Example: TaskSequence ts = new TaskSequence();ts.AddTask.RunTo(position);ts.AddTask.GuardCurrentPosition();ped.Task.PerformSequence(ts); Wiebrendh 1 Link to comment Share on other sites More sharing options...
byteMe420 Posted August 12, 2014 Share Posted August 12, 2014 does task sequence even work? the current shdn dev said it was bugged in the latest public version Link to comment Share on other sites More sharing options...
Jitnaught Posted August 12, 2014 Share Posted August 12, 2014 I've used it before and it seemed to work. Maybe there are some bugs, but I haven't seen them myself. Link to comment Share on other sites More sharing options...
Wiebrendh Posted August 12, 2014 Author Share Posted August 12, 2014 I've used it before and it seemed to work. Maybe there are some bugs, but I haven't seen them myself. Haha my pc crashed on it.. Does not work Link to comment Share on other sites More sharing options...
Jitnaught Posted August 12, 2014 Share Posted August 12, 2014 Oh.. ok Link to comment Share on other sites More sharing options...
byteMe420 Posted August 12, 2014 Share Posted August 12, 2014 Probably better to script out the sequence yourself as I don't see much ability to control how the ped performs the sequence or if you might need to abort the sequence and perform new tasks. Better to use a tick and set conditions for the peds actions and avoid using waits so your ped can react in realtime to the environment. Wiebrendh 1 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