UE4 - Save and load BP Actors!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello guys today I make a new video on how to say location to different to objects and yeah that's probably that it's probably that I gonna do so oh okay hard to me to like speak English because I don't know every words try to explain it for you so the first thing we're gonna do is making that say you like making folder that call say the game and I gonna talk you some more we're gonna save the location if we have and it we don't gonna like to save if you make it like there and if it stood there and you like pushing it to there it saves that location we're gonna we're gonna spawn something and then we're gonna save the location and it's gonna spawn it again when the character is and he came in this gonna spawn in on the same place so the first thing we're gonna do is say make a save game are we gonna make save game objects call this like save game tutorial set whoops I do there I go and then I'm gonna just check there you go ok nice because one time it didn't show up stir and then we're gonna go in here I like make two variables and the first one is test one just q1 and call it again just keep one low case location like ship location array save and we gonna make this transform and make it an array and this one we gonna make just make it a transformer a better you're gonna change it again so test q1 [Music] laughs array say hey go and now we need to need the object you're gonna save so it's I think it's need to be so he goes back and we're gonna make I think it need to be us that they mash but you can do the same thing mesh that we can do it after using up so let's get a chest cube one and we just gonna put in that cute there we go so now I need to now we can go back to the saving again and we can go there and let's find a test 1 and test cube one static mesh object type and reference a reference and here we go so that's and if you don't know how to make groups I can trigger that we do just gonna make just one save and there we go we gotta save her it's pretty useful when you're making like test to your deck this treatise or and you're like and now we're gonna get to I'm gonna show you how you I'm spawning spawning it into the world I'm just gonna get our tests cube one and and I'm like spawning it like this I click that didn't work because I stupid just keep one it should work by the way so I'm not sure what's wrong so probably this one [Music] are you working here but it's not visible oh sure I know what's wrong on the test cube one you need to make it movable if you're gonna split build something into mic removable and I'm gonna do that so easy and if I just respond it there oh I don't have this morning at the place so let's do that and here we go so it's gonna like spawn one there I was born there like on top of it but we need to save this because we figured out and and again it's not there that's pretty bad yes so now we need to make we need to make a function let's save game and yes so the first thing we got to do now is to what is the first thing we're gonna do it okay so first thing we're gonna do is great great game save game objects and we're gonna get the save game think what is cool and yeah sure I forgot one thing okay sorry guys just click on the save game and you'd like click on enumerable and call it player low player locale location save they location save a new like go to transform but it's not array knocks every okay guys remember that here we go plus layer so now I'm going to check out this promote it and call it save save games laughs go and then I gonna cast to the touch save game and then for my just for making it simple I just can promote that and call it get a game nice and then I need yeah sure I need to get no set player location say we're gonna accept the location save so when I'm so the thing we gonna do is to get actor location get rotation and get actors scale 3d okay and then we're gonna make make transform we go I'm just simply just trying to play location okay so now we just know it just what is okay sure so we're gonna get all okay look let's make a sequence and then we need to get all accurate class and that's the test cube one and then we are going to make four on there I'm just gonna plug back in there and we're gonna get I think it's the save game here's to save the game and gets and get these two classes here no get the one class on one location okay how we gonna simply just add we need to make a sequence we need to add it and this one there we go and this one is just gonna deploy it into that and we gonna get actor location get actor location get actors to scale 3d and now we're just gonna make probably let's form there you go and just plug this in there and you do that perfect so I think this is the savegame no we did something wrong that that one so just adding it into this very boys so yeah it's a very variable sort of everything and for the loading this is this is gonna be fun yes guys so and we forgot one thing of course of course guys that was police so close I have my little helper here playing game I made it or so save game two slots and yes not save game name am I gonna get a string and we're just gonna call it the State Game one save aim then I'm going to get this subclass so class is the subclass so that's probable yeah and there we go now it's the save game okay and then we make a new end load game new function it's probably going to be yes load game from slot and and we don't gonna do that pick on their boss those sell game exists and that's the first thing we're gonna do so f if it's true just gonna go there and like get a new one if it's false you're just gonna cry and strain maybe save our game first here we go nice so go and then I'm going to save save game set lap on five facts we're gonna cast to this one I'm gonna see my little tutorial thing and we're gonna get a sequence and then I'm going to get my play location gets layer location save and I'm gonna that's actor location that actor location set actor or row tation and set actor Gale and I don't think it's this one sorry guys it's sorry it's yeah yeah sorry it's sense control row tation and set on roll road a little bit Harrison so just take off the condom system so there we go can I get one oh there we go and then I am going to wait for a transfer [Music] another thing I'm gonna do is to good location there but the rotation in there and put the scale there so I think that's this all for player location and now we're gonna go for objects so that's some difference so we are going to always okay so we're gonna go for for each loop Oh first thing we gonna get gets just acute location array they've got a plug this one in hair and we're just gonna yeah and you're gonna get index there I should I'm gonna get indexed I was a YouTube video on how to do this he did the same thing here but he just I gonna talk get to that later I think but no I'm not gonna do it so thanks so the thing he did was to you have some actress in the world now I gotta yeah sucked it for some in the beginning of this video he had like spawned this static meshes hair and you like mood it's when it was yeah move it and you got out of the game again and saved but it didn't spawn back yeah it's born back like this so you had like he just made these actors move so that the thing I did was to spawn it again in the same positions because if you're building something a house or something shelter and you like build it there and you want to you want to save it you like it goes away when you stop the game and it spawns from doctor and in there to the same position I'm worried this is my first video so sorry I said it's like very weird good sorry so I the thing he did was to like set act actor location and then set rotation then set my main game I can show you my main game I this is coming from later in the video actor scale and then we're gonna break this just right and we like thing I did was to just do this it didn't spawn anything it just you just got all of the actors saved it like get the same position from them and like yeah he you see this one is every every cube it who's in this one so if you go in here and you like when you save every one of the cubes just go in here and that's every one of the cube studying it's in the game everything either does is to spawn them so you have some spawn here and for a full each loop it's going to loop that one I look that one and this one this one this one this one this one and it's in there so it's gonna get the location from every one of these get the location from every one of these there you see so hope you understand that and gonna get and the thing you did was to do this so I think that works but I am NOT going to do that we're gonna spawn the thing I did was to spawn I gonna believe that very nice youtuber in the in the description so you can watch him and like everything I got so yeah and now you're gonna get the sets nope or yes we can do that test cube one here we go and gonna set it to ignore and the thing I did was to just get this this one so it's gonna start it at the monthly automatically when you just just get this one in just in case I'm not sure if you can I'm just gonna end like this one just gonna try that one on no I'm not gonna do that because this is more safer so the thing you did Justin check this one and you just get the return value there and there and there remember it's the return value I'm not so good to explain hair sorry I and for the save game they go [Music] okay have a go let's take this out oh there go so if it's just I'll try to quite load maybe save a game first okay so I'm good just going to spawn one there I like one there and one there and I get spawn one there and the wall there why not I may be there I'm there so okay so if I just say no I know I saved can see it's a fellas here and it's looking like this if I go here alright pressing this button I gotta kick get back there and you see everything is back so we can build more and put something on the top there and they're there they're there and you like to save again like you're watching everything of this probably hair I like press I and go back and press the load button and here we go everything's back that is so nice okay hope you like everyone please subscribe and everything every youtuber say subscribing likes that just do that if you want and it's helped me a lot because if everyone likes this videos I can try to explain much better than I did now and welcome my English yeah [Music]
Info
Channel: TST Productions
Views: 6,360
Rating: undefined out of 5
Keywords: UE4, Save And Load, Save, Load, SaveGame, LoadGame, Save Game, Load Game, TSTProdctions, Unreal engine 4, UE4 Tutorials, Games
Id: UR-g8Zcrq7g
Channel Id: undefined
Length: 22min 13sec (1333 seconds)
Published: Thu Dec 22 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.