• Creating a pilotable helicopter.
    4 replies, posted
I wanted to make a pilotable helicopter, but I don't know where to start. A scripted vehicle that is not a ground vehicle, how do you do it? Then again I can't really find much about normal scripted vehicles in the first place.
3 days?
"do it for me as I have no idea" questions don't really get replies
[QUOTE=Coffeee;50294091]"do it for me as I have no idea" questions don't really get replies[/QUOTE] He doesn't know where to start. Where did he ask people to do it for him? He asked how it's done.
It's an interesting topic and I would suggest that you actually read up on how helicopters work in real life. Because it is going to be easier to replicate the behavior of a vehicle if you understand why and how it operates. A scripted vehicle is essentially going to emulate the behavior of the real life equivalent and how life like the simulation will be depends on the amount of effort you want to put into it. You have a lot of different approaches to vehicle physics in Garry's Mod: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/drive/Register]drive.Register[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/PhysObj/ComputeShadowControl]PhysObj:ComputeShadowControl[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/PhysicsUpdate]ENT:PhysicsUpdate[/url] To break down what a scripted vehicle requires, you're gonna need: A base entity that defines our vehicle. [URL="http://wiki.garrysmod.com/page/Category:ENTITY_Hooks"]A Scripted Entity[/URL] A way to communicate over the network. [url]http://wiki.garrysmod.com/page/Networking_Entities[/url] A way to enter the vehicle. [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/Use]ENT:Use[/url] A way to handle the player while we are inside the vehicle. Example, place him in a seat. [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ents/Create]ents.Create[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/EnterVehicle]Player:EnterVehicle[/url] [url]https://developer.valvesoftware.com/wiki/Prop_vehicle_prisoner_pod[/url] A way to listen for player key input [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/input/IsKeyDown]input.IsKeyDown[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/CUserCmd/KeyDown]CUserCmd:KeyDown[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/KeyDown]Player:KeyDown[/url] A way to move the vehicle based on the key input. [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/drive/Register]drive.Register[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/PhysObj/ComputeShadowControl]PhysObj:ComputeShadowControl[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/PhysicsUpdate]ENT:PhysicsUpdate[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/PhysObj/SetVelocity]PhysObj:SetVelocity[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/PhysObj/ApplyForceCenter]PhysObj:ApplyForceCenter[/url] A way to visually represent your vehicle, such as 3d model, effects, animations and sounds. [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/EmitSound]Entity:EmitSound[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/util/Effect]util.Effect[/url] [url]https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8f77.html[/url] patience is a virtue dealing with physics in Source.
Sorry, you need to Log In to post a reply to this thread.