Announcement

Collapse
No announcement yet.

Third Person Shooter Kit - Cover system, Human AI, Paragon characters, QTE & new stuff is coming!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by razmaz51 View Post
    what do I add ? " start trap activated"? can I use game state base and game state?is there any way to save it with just variables? I have a "bp_savegame" , a "save game " area and a "restore save game " area where I usually can just add variables for saves.these are OnSavegameSave and OnSavegameLoad nodes. when you say "on level end" above , where are you referring to?
    You add new variable to struct type variable - https://docs.unrealengine.com/en-us/...iables/Structs
    Then you use "save game" function (from blueprints library) where you can make struct and give there your value. You do the same for loading. Saving game is pretty simple in UE 4 - https://docs.unrealengine.com/en-us/...ame/Blueprints

    When I say level end I mean level end BP, which is a volume at the end of every level.


    Originally posted by CarlsbergAdam View Post

    Thank you for the help. What I'm trying to accomplish is to rotate the pelvis/legs in the same direction that the player is looking when the rotation reaches a certain value. As it works now, the torso turns 360 degrees while the pelvis/legs remain stationary. Can this be done?
    Not quite sure - do you mean something like in aiming mode? Which is strafing mode. So you already have this in aiming mode. Move away a camera to test if this is what you need.
    Game frameworks on Unreal Marketplace:

    Third Person Shooter Kit - February 2017 Community Pick! - https://www.unrealengine.com/marketp...on-shooter-kit

    Side Scroller Shooter Kit - https://www.unrealengine.com/marketp...er-shooter-kit

    Support Discord channel: https://discord.gg/6rgv5Tj

    Comment


      thanks for help , I understand how to add a variable to a struct , but what kind of variable should I add?i mean , can I call it "trap deactivated" and make it a Boolean or something?I see in the electric trap bp where it deactivates the trap,but see no option for a variable to save after it is deactivated.
      Last edited by razmaz51; 04-15-2018, 10:59 PM.

      Comment



        Not quite sure - do you mean something like in aiming mode? Which is strafing mode. So you already have this in aiming mode. Move away a camera to test if this is what you need.
        [/QUOTE]

        No aiming. Standing Idle. Simply moving mouse left or right results in torso only moving 360 degrees while the legs remain stationary.

        Comment


          this is the latest variable i used trying to save the disabled traps. the owned keys works for saving keys in another level , but I tried all the variables below that on the left , but nothing works. should this work? Click image for larger version

Name:	trap deactivated.png
Views:	3
Size:	454.3 KB
ID:	1462021Click image for larger version

Name:	trap deactivated 2.png
Views:	3
Size:	546.9 KB
ID:	1462022

          Comment


            I created the "trap deactivated" Boolean, but I noticed it doesn't work. if I uncheck the default box in your "start trap activated " Boolean . when I play, the trap will not be active , means yours is working. if I check my default box on "trap deactivated" Boolean I created, the trap is still activated.so checked or unchecked the trap is still activated with my Boolean.so its not working.but even if I use the same setup above with your "start trap activated" variable it still don't work.i've never done this type of stuff before so I don't know how to do what you said earlier.i can add a variable to the S_progress _struct , but I don't know what type of variable or what I would name it even. and I don't know what you mean by get the" save game " function and make a struct and get a value from there.
            Last edited by razmaz51; 04-17-2018, 10:36 PM.

            Comment


              Originally posted by CarlsbergAdam View Post
              Not quite sure - do you mean something like in aiming mode? Which is strafing mode. So you already have this in aiming mode. Move away a camera to test if this is what you need.
              No aiming. Standing Idle. Simply moving mouse left or right results in torso only moving 360 degrees while the legs remain stationary.[/QUOTE]

              I know, but this of movement I use when player is aiming right? Can you move back aiming camera and check if it is what you need?

              Originally posted by razmaz51 View Post
              I created the "trap deactivated" Boolean, but I noticed it doesn't work. if I uncheck the default box in your "start trap activated " Boolean . when I play, the trap will not be active , means yours is working. if I check my default box on "trap deactivated" Boolean I created, the trap is still activated.so checked or unchecked the trap is still activated with my Boolean.so its not working.but even if I use the same setup above with your "start trap activated" variable it still don't work.i've never done this type of stuff before so I don't know how to do what you said earlier.i can add a variable to the S_progress _struct , but I don't know what type of variable or what I would name it even. and I don't know what you mean by get the" save game " function and make a struct and get a value from there.
              You add boolean variable type to struct - https://s18.postimg.cc/jw204bnzt/image.png

              On begin play you use "Load players progress" and based on struct value, you simulate trap deactivation (simulating button press) that's fastest way to do this. On level finished event from BP_Finish_Level (blueprint which you have to place on level) you save game - https://s18.postimg.cc/9ai4s7f2h/image.png

              I hope this script will help you
              Game frameworks on Unreal Marketplace:

              Third Person Shooter Kit - February 2017 Community Pick! - https://www.unrealengine.com/marketp...on-shooter-kit

              Side Scroller Shooter Kit - https://www.unrealengine.com/marketp...er-shooter-kit

              Support Discord channel: https://discord.gg/6rgv5Tj

              Comment


                yea I been using "open level bp" instead of "finish level bp".because I been using this menu system, which has manual save and load , auto save , etc......so I can save in the middle of a level. and say if 3 out of 5 traps are disabled, then I can quit and load later and those 3 out of 5 traps will still be disabled. Click image for larger version

Name:	menu.png
Views:	1
Size:	265.2 KB
ID:	1462963
                Last edited by razmaz51; 04-18-2018, 08:22 AM.

                Comment


                  Thats why in the previous posts above i am using the onsavegamesave and onsavegameload setup shown there. Thats the system used by the save and menu system i am using now.and using finish level bp don't work , because I want to be able to manual save during the level.--------- that link you posted above to the pic with the nodes simulating the button push successful, is that added into the character bp or the electric trap bp?--------and on the target pin of "ButtonPushedSuccessfulEvent", where do you get that BP_Trap_Electric_wall node?---------Also does the boolean need to be named "Trap01Active"? in the level i have six traps and they show up in the details/outliner as BP_Trap_Electric_Wall1, BP_Trap_Electric_Wall2, and so on up to 6.--------------------------------------------------------------------------------------------------------------------------------tried some things as you shown in your links , got these errors in the editor but I could not get that BP_Trap_Electric_wall node mentioned just above?------ So I just created a variable for it, not sure if that is right thing to do.---------------also I named the trap variable " BP_Trap_Electric_Wall6Active" , because trap number 6 is the one I been testing with and that's the way its named in the details/outliner.>>>Blueprint Runtime Error: Accessed None trying to read property BP_Trap_Electric_Wall from function: 'ExecuteUbergraph_BP_Trap_Electric_Wall' from node: Button Pushed Successful Event in graph: EventGraph in object: BP_Trap_Electric_Wall with description: Accessed None trying to read property BP_Trap_Electric_Wall-------------------------------------------------------------------------------------------------------------------------------------------------------this is setup in the trap bp and the struct variable named.yellow circle is node mentioned above. Click image for larger version

Name:	cropped trap bp pic.png
Views:	1
Size:	193.4 KB
ID:	1464403Click image for larger version

Name:	struct variable.png
Views:	2
Size:	99.5 KB
ID:	1464404
                  Last edited by razmaz51; 04-20-2018, 09:39 PM.

                  Comment


                    I know, but this of movement I use when player is aiming right? Can you move back aiming camera and check if it is what you need?
                    I created a video to show you what the issue is.

                    https://youtu.be/yMb9juA95rQ

                    Comment


                      i'll delete the pics soon so they don't clog up the thread. so these two blue circled nodes I cannot figure out how to get correctly.right now without those nodes , if the trap active (orange circle) is unchecked , the trap starts deactivated in level play. again i put these nodes in the trap bp. Click image for larger version  Name:	3rd person image_LI.jpg Views:	1 Size:	179.9 KB ID:	1464629
                      Last edited by razmaz51; 04-21-2018, 01:29 PM.

                      Comment


                        Originally posted by CarlsbergAdam View Post

                        I created a video to show you what the issue is.

                        https://youtu.be/yMb9juA95rQ
                        I get it now. Ok so you want to just have "turn in place" feature. I made code for it. Hook this up for timer for example. What is does is checking control rotation (camera) is in same direction sa capsule (leg in this case) within 10 degress error tolerance. If not, it rotates smoothly capsule, which means is lower body.


                        Maybe strafing is better what you need? As I wrote before, it is used in aiming mode. To see it in BP_TPPCharacter, select component " Aiming Mode Right Helper Cam " and move it back, then in game start to aim. Charcater will use strafing blendspace (BS_Running)

                        If you want to lock upper body, you can also do that. I'm explaining it in video https://www.youtube.com/watch?v=5RJtLmMIm4M




                        Originally posted by razmaz51 View Post
                        i'll delete the pics soon so they don't clog up the thread. so these two blue circled nodes I cannot figure out how to get correctly.right now without those nodes , if the trap active (orange circle) is unchecked , the trap starts deactivated in level play. again i put these nodes in the trap bp.


                        These nodes (selected with blue) are reference from level bluerpint. These are actors on level and this script is done in level blueprint.
                        Attached Files
                        Last edited by hamsterPL; 04-21-2018, 06:56 PM.
                        Game frameworks on Unreal Marketplace:

                        Third Person Shooter Kit - February 2017 Community Pick! - https://www.unrealengine.com/marketp...on-shooter-kit

                        Side Scroller Shooter Kit - https://www.unrealengine.com/marketp...er-shooter-kit

                        Support Discord channel: https://discord.gg/6rgv5Tj

                        Comment


                          Originally posted by hamsterPL View Post

                          I get it now. Ok so you want to just have "turn in place" feature. I made code for it. Hook this up for timer for example. What is does is checking control rotation (camera) is in same direction sa capsule (leg in this case) within 10 degress error tolerance. If not, it rotates smoothly capsule, which means is lower body.


                          Maybe strafing is better what you need? As I wrote before, it is used in aiming mode. To see it in BP_TPPCharacter, select component " Aiming Mode Right Helper Cam " and move it back, then in game start to aim. Charcater will use strafing blendspace (BS_Running)

                          If you want to lock upper body, you can also do that. I'm explaining it in video https://www.youtube.com/watch?v=5RJtLmMIm4M








                          These nodes (selected with blue) are reference from level bluerpint. These are actors on level and this script is done in level blueprint.
                          @hampsterPL Thanks so much. I will implement this tomorrow morning!

                          Comment


                            Originally posted by CarlsbergAdam View Post

                            @hampsterPL Thanks so much. I will implement this tomorrow morning!
                            I clearly don't know what I'm doing. I can not find the CheckLowerBodyAngle Event or the CorrectLowerBody Timeline.

                            Comment


                              " I clearly don't know what I'm doing " ----same thing i was thinking about me.--------------well I set things up just like you show it in level bp. but it don't do anything for saving or loading the trap state.what am I supposed to try to save? the variable I added to the progress struct?the variable ( BP_Trap_Electric_Wall6Active ) somehow affects the trap, if I check its default box in the trap bp, the trap no longer works, it wont disable anymore. and even though "use once" is checked , he can repeatedly push the button.(well it was , now it doesn't seem to make a difference where default value box is checked or not. it always works normally now).-------------------the button simulation setup we just did, what is it supposed to do? allow that variable to be saved by any save system with the traps deactivated?Like the onsavegsmesave and onsavegameload setup shown in the pics above? or is it tied in with level finish bp? hence the "bind event to level finished reached".i mean , it shouldn't be that hard to save a trap after its deactivated.
                              Last edited by razmaz51; 04-23-2018, 11:39 AM.

                              Comment


                                I thought that UE4 was lacking a "find in project" feature as I am new to the IDE, but I just found this: https://docs.unrealengine.com/en-us/...eprints/Search. I think it will help.

                                Comment

                                Working...
                                X