Hello, I want to make a cops and robbers type game, and so far the difficult part i run into is arresting a player.
I’m going to explain more, I want it where when you have hand cuffs, which will be considered a weapon, when you go near a player with hand cuffs equipped a ui will say “arrest” with the Key you press, once you press that key, you have to old it down for 3 seconds. Once the 3 seconds are up, on the players screen it will say “you have been arrested” and the players movement will, be disabled for 5 seconds, after those five seconds the player will respawn at a random respawn, which will be inside a group of random responds and that group will be name “prison” and that’s it.
Break down:
Player has weapon named hand cuffs
weapon named hand cuffs is equipped
Player with weapon named handcuffs go near another player
Player with hands cuffs sees ui pop up on player that says “arrest”
Function by holding down key for 3 seconds
After 3 seconds are up, disabled players movement, and show on players screen “arrested”
Wait 5 seconds
After 5 seconds are up redirect (respawn) player that’s arrested to spawn.
Spawn is located in a group that’s name “prison” in group prison, are random spawns the arrested player will spawn at.
How would I go about making that work and making the 1-9 into blue prints so it will work thanks for the help.
This is a multi-faceted system and doesn’t have a simple “this is how you do it”, there are many ways, what have you accomplished so far? Screen shots?
I’m completely new to ue4, haven’t accomplished anything yet, I’m sorta coming up with ideas on how it might work, for example I was think about having a ui display when a weapon aka handcuffs is equipped, then once you go near a player and they will teleport to the spawns something like that.
So follow up question… if I gave you a step by step logical progression of how I would do it would you be able to implement it? For example if I say you need two player characters, create an overlap event in one, cast to this blueprint, create an actor, use a delay mode etc would you know how to do that? Because if the answer is no then I would say before you embark on this journey to create a game learn the basics, create some simple stuff, learn blueprints and then attempt to do this.
Your right, the answer is no, that’s what I would do create simple things, I thought it would be a simple process but if you help me and I don’t understand that’s no use.
I would suggest starting with YouTube to learn the basics of UE4 and blueprints. It is free and relatively easy to do. I started a beginner series that takes you through some of the basics of creating common game play elements so if you are already familiar with the interface this might be helpful to you.
Beginner Videos:
Other people I found helpful when starting out were VirtusLearningHub (he has a ton of content and also I believe walks you through the interface if you haven’t learned that yet)
And Dean Ashford good for game play and graphics stuff
And this guy is good if you have questions about what specific nodes/things do in UE4