BeamNG Drive Tutorial - AI Script Timing Adjustments - How to play beamng drive

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to beam ng drive i'm david in ark and today we're going to take a look at the script ai however we're going to work on it specifically to target timings so that you can learn how to time certain things to happen at a certain time so what we've got here i've got the bastion parked over here on the side and then i've got this student driver covet parked here at the top so the first thing i want to do is i'm going to record the two different ai paths in order to just get the flow of where they're going to go so what you're going to do is you're going to hit f11 that is going to bring up the world editor from the world editor you're going to go to the window menu at the top you're going to come down to game play and in game play there is the script ai manager now when that pops up you should get a window that shows up here and you're going to have your two vehicles you're going to have the bastion and the hatch in my case you'll notice that the bastion is the one with the orange dot that means that's the one i'm currently focused on okay so good to know all right so the other thing we want to do it's up to you whether you want to display the path or not uh i'll go ahead and check that that way you can see what that looks like then in order to start recording then we're just gonna hit record and start driving now as you start driving you'll notice that the camera doesn't follow the vehicle so shift c will put you back into camera mode and this will allow you to record the path you want so i'm just going to record myself going down this road and then we'll stop when we get to the bridge all right now once you're done you hit stop and you'll notice that now because i have the path checked that it shows that i have in this case it's a turquoise path so i can go to more and i can tell to reset the vehicle so when you start out if you click on more you may see loop you may see debug and then you've got these offsets and delays so i'm going to tell it to reset the vehicle which means reset the vehicle back to the start if you hit reset recording that means delete the recording you just did let's not do that looping means that when it gets to the end it's going to start back over again i recommend not doing that because we just want this to be a once through uh run through so i've got the bastion taken care of now i want to go and i want to do the clone so i can just click over here on the clone and once again i can go to more and make sure it's not on loop we're good to go there i'm going to hit record i'm going to start driving oops and we can follow the vehicle here and we're just going to pretend that the student driver ignores the stop sign completely and drives around the corner now that's this is going to be interesting to see what the ai does with this but that's okay all right and then once we get to somewhere up in here i'm going to stop now i could technically stop anywhere i want to but this just gives us some play room all right so i'm going to go back up here and we're going to reset this all right so now we have the two paths recorded the question is do they line up and so to check that out then you can go to play all and when you hit play all you'll notice that both of their progress will start to go and we're currently behind the covet so that's fine so what i'm looking to to see is where okay so there goes the bastion and yes as a matter of fact we do crash into that wall right so the bastion crossed by us um what a few seconds before not really well about a few seconds before so i can go to the bastion and more and you'll notice that there's a delay start if you now if this is a little weird you have to click once and then click again actually double click let's just do that let's say double click so now when i double click i'm going to delay the start enough so that when this car when the covet comes down the hill it's going to smash into the bastion so if we look at uh gearing about how long it took we'll just say 1.5 seconds so i type 1.5 and that's going to give me 1.5 seconds delay start of the bastion so again i can go reset the vehicles and then we hit play now right now i am just kind of in the editor mode i will show you how you actually would uh you know kind of do this for real if you want to watch it but right now we're just trying to get our timings done okay that is a little too much of a delay so i'm just gonna stop so we notice that now the covet gets there much faster now i could play around and i could delay the covet more but that to me is ludicrous um i would just double click this and so instead of 1.5 seconds i'll tell you what let's just do one second and we'll see how this works if it turns out that this is now still too slow that is now that we've got it set at a second the bastion misses then we know the correct time is somewhere between one and one and a half oh that was actually not too bad um but i i for me oh look at that we got fire and everything but for me i still think that uh i i'm looking more for kind of a t-bone so i know that one second is actually still too much of a delay so i'm gonna do maybe 0.75 seconds reset reset play this and essentially what you want what you're going to want to do is work through these timings until you get the exact situation that you're looking for this really comes in handy oh oh nope that's a little that's a little too fast actually so in that case it's not quite enough and that's actually a good thing because we know that one second was a little too long right but .75 is too too quick so maybe 0.85 sure let's try that i have no idea this is how you know i'm doing this live because uh i did not pre predetermined what this was going to look like but if you're trying to recreate an actual crash and you know the timings then you can oh yeah look at that that's beautiful oh that is gorgeous okay so now i've got the situation pretty much right where i want it to go so once you've got this now i can reset the vehicles and the way that i normally do this for real time play is um as far as i know there's not a way to control this through like a ui or anything so what i do is i make sure that i hit j to pause the physics then go ahead and start the playback but you'll notice that they are not playing because i've got the physics paused i'm going to hit f11 to get out of the world editor and then oh and then i can unpause physics and so now the physics are unpaused now i still have the track on the screen um just because i'm still kind of troubleshooting but i'll show you how you get rid of that here in just a second but look at that oh yeah beautiful t-bone into the side of the bastion who goes flying into the tree oh that is fantastic all right i mean not if you're in the bastion right but anyway we can stop this uh okay so again if i go to more reset vehicle more reset vehicle remember down here there's the display path i can uncheck display path that way the path is gone let's see okay i got the flowers moving around so i can hit j that's gonna pause the physics shift c will shift me back to the camera i mean shift c will shift the camera back to the vehicle i can hit play f11 notice now i do not have the track on the screen i can also do alt u and i can hide the ui altogether by the same token i could use tab and now i am in the or i'm following the bastion let's go into the driver's seat by hitting c one time j will unfreeze the physics and now we are in the bastion driving along minding our own business when all of the sudden there's a car coming out of the corner and slam oh that time it even rolled over now one of the downsides to the ai script playback it's not easy to replicate the situation which is really a bummer um and i'm not sure what you would even do about that uh to be perfectly honest let's see am i paused here i think i'm already paused yeah all right so i'm already paused uh and actually in this particular case oh well there we go uh what else i say was i'm in free camp but i wasn't so as as with any time you're recording stuff you can free cam all you want to and then unpause the physics and basically hang out here on the corner until things happen so here we go the covet over the hill the bastion coming up here and oh they slam into each other and again you see this time the bat the covet did not flip upside down and the bastion ended up over here in the woods so that's kind of one of the downsides it's not an exact science um and i don't quite understand that because you would think that theoretically i mean if it's got the same ai path then the results should always be the same but they're not that's really neither here nor there the main thing that i was wanting to show you was that you can come in here and you can change the offsets and the delays now what's i don't okay so the start offset means that it cuts that many seconds from the start versus delaying the start so essentially you can use the start offset to speed up the start of your uh progress the start of your playback versus the delay meaning you know hold back the start so you can use those to adjust things as you need to want to as it applies to your situation oh and these dudes are still playing back because uh yeah i didn't stop them didn't stop them at all all right so we reset the vehicle now here's the other cool thing about uh all of this is that you can save the recording uh the path recording so for example if i want to save this i can click the save icon and i could call this um maybe uh east coast usa bastion and then i don't know whatever um zero one all right and then i could do the same thing with the clone i could call this um i can't remember what i called the other one i don't know east coast usa covet 01 so that i know they go together and then later i could come back in here and i could load any of the recordings that i have saved and so at any time i could bring these back and i could you could record them you could play them you can do whatever you want to so what's really cool about this is you can actually do this for as many vehicles as you want i could pop in you know another vehicle or three more vehicles or whatever and play with the recordings and timings so that i have these scripted collisions that happen uh in the game so very cool stuff i just i don't know it's it's it's so awesome what you can do in beam ng and i think i'm actually gonna let's sit out here so one of the other things i could do is i could while it's playing back i can also slow things down so that we can see in slow motion exactly what happens in this particular collision we see the student driver runs the stop sign and the bastion just plows straight into the side of the vehicle which is kind of the opposite t-bone that i was looking for but you know what hey it works [Applause] your mileage may vary so anyhow there you go i hope that helps with getting into the ai script manager and using the offset and delay to time things that you're wanting to happen exactly to your specifications got any questions problems suggestions horror stories feel free to leave those down in the comment section below special thanks to hero of god gamergal los wilco connie c and zachary for supporting the channel on patreon thank you guys so much i appreciate it thank you so much for watching oh here we go oh yeah that is absolutely gorgeous and why we play beam and g look at that man these are getting like more violent the more times i replay them what's up with that i have no idea oh anyway hey thank you so much for watching i'm david and arc we'll see you next time have a great day you
Info
Channel: davidinark
Views: 17,897
Rating: undefined out of 5
Keywords: davidinark, gameplay, beamng, gaming, gamer, gta, beamng drive, broken car, broken cars, beamng drive davidinark, beamng davidinark, beamng drive realistic crashes, how to play beamng drive, beamng drive tutorial 2022, beamng drive ai tutorial
Id: aVE2emZsEf4
Channel Id: undefined
Length: 16min 5sec (965 seconds)
Published: Sun Mar 27 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.