Це відео не доступне.
Перепрошуємо.
How to do Same Keyboard Local-Multiplayer In UE4!
Вставка
- Опубліковано 19 лют 2022
- Here's a tutorial on how to do Same Keyboard Local-Multiplayer in Unreal Engine 4!
It's something I learned at the beginning of the year for a college project and I found that everyone else struggled with this too. I thought I'd make a tutorial on this and this is it!
The video quality is dreadful when it comes to the actual tutorial part, sorry about that, I'm going to tweak those settings for the next tutorial to make sure it's much better.
This is the most useful thing I've ever seen while trying to code something.
I have been looking for something similar for a long time, at first I did not understand, but after watching the video a couple of times, everything worked . Thank you
Really great video, would you consider creating another video for UE5?
Maybe! I'll look into it :)
liked kaz of the burp, mate, nice job!
this is where we fix that.. *BURP* xD
*"setPlayerIndex* -> there i am missing the "target-input" any idea why?
Hahahahahaha, you might not be pulling "setPlayerIndex" from the character you've casted from so it doesn't know who to call it for :)
If that doesnt help, shoot a message in the discord server in the description with a photo and i'll take a look for ya :)
Thanks!!
Hello,
Thanks for your video.
I have an issue that you may have a solution.
I launch my game in main menu level, I choose two players skins and hit Start button to open Game level.
All is good at this point, I have my two players that I can control.
When one of the two player win in my game, the game stop and change level to go on main menu level where is the start button that I hit to play again.
It reopen the game level.
At this time, two players spawn normally BUT one other actor spawn (a copy).
Again I restart and two players plus two copy. Then three copy, and again.
...
The create player function create each time an other copy.
Do you have any idea and solution ?
Thanks for your help and thanks for this video.
Hi there!
The issue you're having is, when a new split-screen player is created, they don't get removed until you call to "remove player"!
You should look to delete players at the end of a game (or before you're about to create players on BeginPlay) and hopefully that should work for you!
@@arch5503 I will look for that. I'm sure it will work.
Thank's for your help =D
@@niconico3446 No problem! I hope it works!
Thankyou for thsi tutorial! How would you do this if your second player was a different character than maincharacter?
If your second player is a different character, cast to that character instead and it should work :)
And thank you!
@@arch5503 So I tried that but it still only gives me 2 of the main character, in my game mode my default pawn class is my main character and my player controller is my custom player controller do you think that's the problem? If I set default pawn (in the game mode) to none the view is under the map and I get a ton of errors, thanks
@@aviationengine6701 your second player will be the same as the first (which is whatever you set the default pawn to in your world settings) so there shouldnt be any problem with following the video itself as that's how i do it :P
try to destroy the player 1 actor and see that the control over the player 2 actor is gone, seems like the destructor destroys something from the instance in which it is not supposed to change anything
same happens with disable input(self)
@@defeat575 heyo! This is because the player 1 controller takes priority over the second controller so all the movement occurs in the player 1. If you delete or disable player 1, player 2 can't move because everything is handled by player 1.
Muy útil el tutorial :)
I follow all the video and my cast failed and i don't understand why, can you help me?
Plz 🥺 help me i can't get second player on screen by using player1
Hey there, im a bit confused what you mean, is the screen not doing splitscreen but the second player is spawning?
I just want two different players on screen but only one player and it's copy is on screen .how can I spawn two different players from character class
@@mihirverma4067 If you wait a couple of days i'll make a video explaining for you :)
@@arch5503 yes i will thank you for your help
But i want this on same keyboard controls used by both players , I think which means only one controller is going to be used i might be wrong . NOT like local multiplayer.
this is a bit fucked to be honest, but nice workaround
@@ludwigwetzel yeah, I’m probably gonna do another video improving this lol