No announcement yet.

5 traps on level - saving only traps that are disabled

  • Filter
  • Time
  • Show
Clear All
new posts

    5 traps on level - saving only traps that are disabled

    hello , I have 5 traps on a level , a node setup on the level bp that simulates a button push for disabled trap to save it after disabled. the setup uses break and make progress struct nodes. (so in the save player progess node , when deselected the traps are saved disabled. I copied the whole setup 5 times , one for each trap,(so in each setup it references the next trap). they are connected to event begin play with a sequence node. problem is , if all the traps are deselected in any of the progress struct nodes , when I disable and save any one trap , it automatically disables and saves all the traps. I tried different combos of deselected traps in the struct nodes , but it always saves whatever the last disabled trap struct node is set for . (ex. if trap 3 struct node has first 3 traps deselected it will save traps 3 , 2 , and 1 , as disabled , even if I only disable trap 3 and save.)(if in trap 3 setup I have only trap 3 deselected , then any other traps not deselected are activated, even if they were previously disabled and saved before . is there a way to save only the traps that are disabled? 1st pic is single trap disable setup. 2nd pic is first two traps disabled setups(second setup is copy of first but with second trap referenced), 3rd pic is the struct nodes , the break struct connects only the pin for that trap to the branch, the make struct saves traps disabled that are not selected as active in its boxes, last pic is the sequence connection to event begin play. Click image for larger version

Name:	single trap disable setup.png
Views:	57
Size:	379.1 KB
ID:	1468501Click image for larger version

Name:	2 trap disable setups.png
Views:	36
Size:	467.2 KB
ID:	1468502Click image for larger version

Name:	struct views.png
Views:	17
Size:	467.5 KB
ID:	1468503Click image for larger version

Name:	event begin play sequence connect.png
Views:	19
Size:	366.3 KB
ID:	1468504

    in first pic example , (this is just in the trap 3 setup as each trap save setup has a struct node., if I disable trap 3 first , then first and second trap are automatically saved as disabled also. in 2nd pic example if I set it so in each setup only that trap is not selected in struct node, the any others before or after it that are selected are automatically reactivated. I'm trying to get it so whichever trap I disable is the only trap saved as disabled, until the next trap is disabled and so on til all 5 are disabled. Click image for larger version

Name:	trap 3 struct setting.png
Views:	32
Size:	477.9 KB
ID:	1468508Click image for larger version

Name:	only trap 3 unselected.png
Views:	33
Size:	480.5 KB
ID:	1468509


      Any ideas? Thanks


        Originally posted by razmaz51 View Post
        Any ideas? Thanks
        Here's the thing. Your blueprinting is really messy hard to understand.

        Also your writing is all clunk up together. I'm on a cellphone so it just hard to read. Should use empty lines to separate your points.

        Can you use a bool array? Just set to true the ones that are disabled. Index the trap from 0-4. Just save that and when on load use that array to set which trap is enabled and disabled. Or if the traps are blueprints make a IsDisabled bool and put it in an array. Save and load using that array.

        Also I'm being ignorant and didn't bother trying to understand your post. Just threw my 2 cents out.
        Last edited by SkeetonYu; 04-30-2018, 06:22 PM. Reason: Grammer I think.
        Checkout Project "TwinBlaster" my current game in progress.
        [FREE] - 2D ROPE! Find out more here!
        Forgive my username... It's an old game name and wrote it down as a habit.


          I tried bools , arrays , everything i could think of, pulling my hair out.