Coding a PID in Lua | Advanced Tutorial | From The Depths

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

Scott Wright

Scott Wright

Күн бұрын

Assuming you know a little about coding already, this video will show you how to create a PID in Lua. This can reduce the number of controllers and PID boxes needed on any vehicle into a single Lua box. I don't go over anything that you need other than the PID, so you won't learn how to automatically calculate indexes, looping through all spinners, movement AI, etc. in this tutorial.
Keep in mind that every time a spinner is destroyed/removed/added, the indexes may change. That means hard-coding indexes, like in this tutorial, will make it impractical for combat. You'll need to see the next tutorial to make it combat effective.
Code from the video: pastebin.com/6...
I will have another tutorial later that explains Lua coding in general for those of you who are very new to this.

Пікірлер: 14
@ared38
@ared38 4 жыл бұрын
Great tutorial! It's stuff other tutorials don't cover and you've presented it clearly.
@jonathanorr5878
@jonathanorr5878 4 жыл бұрын
This is the best Lua tutorial I was able to find for an PID controller, thanks a lot for making it, It helped me a lot
@valkyrie1689
@valkyrie1689 3 жыл бұрын
Awesome video mate, still works a year later to make tiny copters :) ty for helping me learn how to Lua + the missile Tut finally opens up the munitions tips
@meanderer9808
@meanderer9808 4 жыл бұрын
Thanks for the tutorial. I’d love for one on how to make weapon systems like APS
@ChristopherMocko
@ChristopherMocko 4 жыл бұрын
absolutely fantastic. As far as tutorials go, yours are very well organized and easy to follow.
@a11y93
@a11y93 3 жыл бұрын
thank you... this is some epic shat and i never would have been able to make a lua pid on my own
@baseddino
@baseddino 2 жыл бұрын
Thanks bro 👌
@stuartpratt3662
@stuartpratt3662 4 жыл бұрын
awsome now would an expert tutorial have several sets of blades controlled independently because I think that would be the mother of all headaches
@FierceFire14
@FierceFire14 3 жыл бұрын
wouldn't that be weighing the blades depending on their position on the craft? I don't really know what you mean though, so i could be wrong
@baseddino
@baseddino 2 жыл бұрын
Description says impractical for combat use next tutorial but there is no other tutorial rip
@chimaera1195
@chimaera1195 4 жыл бұрын
ayy danke m8
@Nesetalis
@Nesetalis Жыл бұрын
Sadly spinners with props are no longer the way ;.;
@WarpForged
@WarpForged 2 жыл бұрын
What game is this?
@scottwright7177
@scottwright7177 2 жыл бұрын
From the Depths
Ship Hull Design | Beginner Tutorial | From The Depths
12:17
Scott Wright
Рет қаралды 3,6 М.
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 42 МЛН
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 41 МЛН
Apple peeling hack
00:37
_vector_
Рет қаралды 46 МЛН
AI Behaviour Rundown - From the Depths
43:16
BorderWise
Рет қаралды 12 М.
Lua Missiles! | Intermediate Tutorial | From the Depths
23:36
Scott Wright
Рет қаралды 9 М.
Steam Engines Full Guide (From the Depths 2021)
36:42
Liv's Lab
Рет қаралды 27 М.
I'll Let Myself In: Tactics of Physical Pen Testers
44:56
Wild West Hackin' Fest
Рет қаралды 2,8 МЛН
Coding Adventure: Simulating Fluids
47:52
Sebastian Lague
Рет қаралды 1,8 МЛН
PID Controller Explained
9:25
RealPars
Рет қаралды 824 М.
Embedding Lua in C++ #1
35:33
javidx9
Рет қаралды 175 М.
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 42 МЛН