Viscera Cleanup Detail

Viscera Cleanup Detail

Custodial community content
Find and share community-made content! Use the included UnrealEd to craft your own messed up space stations!
Learn More
Shaklin 15 Jul, 2019 @ 12:59pm
Door open with keycard
Hello,

I am currently working on a map. I have created a room with a locked door.
I want that the player have to open it with a keycard (into a keycard-panel next to the door).
How can I do that?


(sry for my english, you can also write in german :))
Last edited by Shaklin; 15 Jul, 2019 @ 1:03pm
< >
Showing 1-11 of 11 comments
cannonf0dder 33 15 Jul, 2019 @ 1:20pm 
I would make a small trigger volume ( just a little bigger than the panel ) around the panel.
Then in Kismet, with the trigger volume selected, right click and select "new event using trigger volume>touch. Set it's properties to max trigger 0 (for infinite use). Then right click next to that and add a "new condition">"viscera">"player is holding", go back to your map, select the keycard and then back in kismet, right click the "debris" node on the player is holding condition, and add the keycard there. then link the triggers "touched" to the conditions "in".
Next right click and add a "new action">"viscera">"VC_mover". Link the conditions "holding" to the vc_movers "move toggle". Finally, in the map select the door and in kismet right click the mover node on the vcmover action and add the "new var using".
that should do it.
Little bit confusing to write out. If you need a screen shot or a video I'd be happy to do either to show you what it looks like.
Shaklin 15 Jul, 2019 @ 2:36pm 
That was quick, thank you :). I tried it out.. I think I do something wrong, because the door disappears, if the keycard touch the trigger volume.
https://i.imgur.com/HH3LhAs.jpg

Maybe I have created the door wrong. Besides, you can go through it, even though it has a collision. Why?
https://i.imgur.com/WRBboPY.jpg
cannonf0dder 33 15 Jul, 2019 @ 2:41pm 
The kismet looks fine, and the mover looks setup ok ( need to uncheck "move on interaction") maybe try setting the "holding" to the "move forward"
as for the collision, right click the door and set collision block all.
Also, yes! payday map, been wanting to do one of those for ages, glad you took it up!

Edit:if you struggle to get the mover working, you could always change the mover into an interp-actor, and animate it opening yourself using Matinee.
Last edited by cannonf0dder; 15 Jul, 2019 @ 2:46pm
Shaklin 15 Jul, 2019 @ 2:49pm 
Collision works now :) thank you. But the door still disappears when I touch the trigger volume with the keycard.

EDIT: Ok I try it out.. looks a bit complicated :)
Last edited by Shaklin; 15 Jul, 2019 @ 2:58pm
cannonf0dder 33 15 Jul, 2019 @ 2:53pm 
Very strange, try doing it with the interp-actor and matinee. That should work perfectly.


Edit:Just did a quick test map with the setup, and everything worked fine with a vcmover.
Try setting the trigger in the kismet to trigger just 1 time instead of 0
Last edited by cannonf0dder; 15 Jul, 2019 @ 3:02pm
Shaklin 15 Jul, 2019 @ 3:16pm 
Its the door itself.. if I check "move on interaction" and I touch it with the hands ingame, then it also disappear...I dont know why.
Because if I check "start open", the door is fine (90° rotation).
cannonf0dder 33 15 Jul, 2019 @ 3:25pm 
Very odd. Yeah I'd either rebuild the mover or go the matinee route. Try the rebuild 1st, also looking at your pics, you should move the pivot to the corner of the door, or it will rotate about the centre of the door and not the hinge. right click corner of door>pivot>move pivot here, then right click pivot>save pivot to pre-pivot.
Last edited by cannonf0dder; 15 Jul, 2019 @ 3:25pm
Shaklin 15 Jul, 2019 @ 3:45pm 
It works with the pivot settings, thank you for your help :)!

One question.. I noticed, that sometimes when I drop the keycard, it disappears into the ground.
It's gone then.. how do I prevent that?
cannonf0dder 33 15 Jul, 2019 @ 4:14pm 
Does it shake a lot first? it could be a bad collision mesh making it get stuck, and in-game if it gets stuck it auto deletes.
2 options here;

1)Open the static mesh in the content browser and let the game make the mesh. Double click the mesh in the content browser, select collision on the top bar, and pick how deep you want it, the "6 Dop" should be fine for the key.
Or
2)Disable the games ability to destroy if stuck. Open up the keycards archtype, and under the "vcDebris" heading you should see a "destroy if stuck" box, you could uncheck that.
Shaklin 15 Jul, 2019 @ 4:27pm 
That helps, thanks again! I'm really happy the door works now, that makes the map a bit more interesting.
Next I would like to change little things .. the card should no longer be in the hand after using, but stuck in the keypad and the keypad should light up green.
If I can not do it myself, I'll ask here again :).
cannonf0dder 33 15 Jul, 2019 @ 4:28pm 
Yeah you can do that. It's a little tricky to setup and you'll need to learn about matinee (if you want it animated), or you can just use smoke and mirrors to make it look things are happening. Just post again when you need help on it.
Last edited by cannonf0dder; 15 Jul, 2019 @ 4:40pm
< >
Showing 1-11 of 11 comments
Per page: 1530 50