Create ELDEN RING in Unity ► EP. 28 LOCK ON (Pt. 1)

  Рет қаралды 4,843

Sebastian Graves

Sebastian Graves

10 ай бұрын

In this video we set up an input for our "Lock On" functionality. We then write some logic to locate a potential lock on target. The target must be within our field of view, max lock on distance and must not be blocked by enviro geo.
► DEV LOGS (Second Channel)
/ @sebbygraves
► JOIN OUR DISCORD
/ discord
► SUPPORT ME ON PATREON!
/ sebastiangraves
► ASSET STORE PAGE (Animations & Models)
assetstore.unity.com/publishe...
► FREE ANIMATION WEBSITE
www.mixamo.com/#/?page=1&quer...
► FOLLOW ME IN INSTAGRAM!
/ tragicallycanadian
► EPISODE 29
• Create ELDEN RING in U...

Пікірлер: 29
@sorokan6036
@sorokan6036 10 ай бұрын
Neat way to replace all the player scripts with character scripts wihtout loosing the serialized field's values: In the top right of the inspector tab press the three dots and select "Debug". Now every component has a "Script" field - simply replace PlayerX with CharacterX and keep all your data. ;)
@boomxhartshotxchannel3111
@boomxhartshotxchannel3111 6 ай бұрын
I was coming here to share that exact info! Great work @sorokan6036 !
@XMuku
@XMuku 2 ай бұрын
Great system so far. The comment about using Debug to switch all the scripts was also very useful.
@tenko1058
@tenko1058 2 ай бұрын
yay! I've been looking forward to this so much!
@johnheggelund7943
@johnheggelund7943 6 ай бұрын
Thanks for another great video. It's really cool comparing this project to my Dark Souls project and seeing what's tried and true and what's been improved.
@Tozerus1
@Tozerus1 10 ай бұрын
Great video as always! Thank you!
@SebastianGraves
@SebastianGraves 10 ай бұрын
Thanks for tuning in brother.
@loool72
@loool72 10 ай бұрын
got it working with no problem, awesome
@danielmyers7593
@danielmyers7593 10 ай бұрын
=) Thank you for the best Unity tuts!
@SebastianGraves
@SebastianGraves 10 ай бұрын
Thank you for tuning in!
@HansChristian-bj2pt
@HansChristian-bj2pt 4 ай бұрын
Nice video. Kind of fun that when you try to place a target dummy on the map it zooms to the 0,0,0 position.
@user-pt9fw5gd9h
@user-pt9fw5gd9h 9 ай бұрын
Awesome. Thank you very much!
@sorokan6036
@sorokan6036 10 ай бұрын
Hey Sebastian, great video! maximumLockOnDistance seems redundant though, as the lockOnRadius already excludes targets that are too far away. You can also directly compare lockOnTarget with player, there is no explicit cast needed. Cheers!
@SebastianGraves
@SebastianGraves 10 ай бұрын
Hahaha good catch! Hopefully I will remember this remark when filming part 2.
@TheVaryingVariable
@TheVaryingVariable 10 ай бұрын
Will you share how you setup an ai character for the lock on test or will you be using the 2nd player client from multiplayer to test this functionality? I was thinking about trying to make an NPC/AI class which inherits from character to try and get this working myself but I'm still apprehensive of messing with network objects
@SebastianGraves
@SebastianGraves 10 ай бұрын
We set up a dummy in the video! We will be starting a.i after lock on.
@SebastianGraves
@SebastianGraves 10 ай бұрын
Definitely try it out! Don't be afraid, it's the best way to learn.
@278shmily2
@278shmily2 Ай бұрын
Your videos are great, but I have a problem - "dummy" character, is not in its normal state, always in a state of "falling" or "jumping"! Can you help me, thank you very much
@victorgabriel6087
@victorgabriel6087 28 күн бұрын
I dont know if is too late but I fixed that by changing the scripts in the dummy using the debug menu. There is another commentary here talking about that if you need! But basic is something missing in the scripts
@einnor0118
@einnor0118 10 ай бұрын
Would you say this way of handling lock on is better than the one darks souls tutorials, or is this one better for online, and the other one is better for offline ?
@SebastianGraves
@SebastianGraves 10 ай бұрын
This way will be much cleaner, and will have additional polish logic, such as camera smoothing during switch and reset ect, camera re-centering and so on.
@einnor0118
@einnor0118 10 ай бұрын
Ok thanks, you are the best❤
@heimdal4042
@heimdal4042 10 ай бұрын
Hey seb I don't know Why but client can hit host but host cant
@SebastianGraves
@SebastianGraves 10 ай бұрын
Any errors when you try and hit?
@heimdal4042
@heimdal4042 10 ай бұрын
oh i found out when the client is joining in to the server and they die because the loading part made the client to 0 hp. Then, he became immune because he are already dead. It become a huge problem.
@heimdal4042
@heimdal4042 10 ай бұрын
help@@SebastianGraves
@loool72
@loool72 10 ай бұрын
maybe try making the currentHealth in CharacterSaveData to currentHealth = 1 and see if that fixes anything
@heimdal4042
@heimdal4042 10 ай бұрын
WAT my vital and end is 0 oh
@TrollAndPlay
@TrollAndPlay 10 ай бұрын
You still have faith in Unity with what's happening with it?
Create ELDEN RING in Unity ► EP. 29 LOCK ON (Pt. 2)
22:37
Sebastian Graves
Рет қаралды 3,2 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
БИМ БАМ БУМ💥
00:14
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 3,1 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 17 МЛН
Why I'm not switching to Unreal Engine | Unity vs Unreal
7:08
Sasquatch B Studios
Рет қаралды 74 М.
Adding an AI Monster to my Horror Game - Devlog #2
7:43
LenexTL
Рет қаралды 14 М.
How to code SMARTER A.I. enemies | Unity Tutorial
32:49
This is GameDev
Рет қаралды 50 М.
Why Solo Developers Should Use Unreal
10:55
Thomas Brush
Рет қаралды 345 М.
НА ИГЛЕ. MINECRAFT
23:45
IGM
Рет қаралды 311 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 519 М.
How Elden Ring Was Made and Why The Director Feels Apologetic
22:51
ThatGuyGlen
Рет қаралды 1,1 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН