• How to make a DRIVEABLE vehicle in a new gamemode?
    4 replies, posted
Hello, I'm planning to make a deathmatch type gamemode. How would I make a driveable vehicle entity? I like to code things myself, so I just need a link to maybe a tutorial or a page on the wiki.
the drive library is the library that allows you to fly props and shit around the map, not drive a vehicle
[LUA]function spawndavehiculardevice() local car = ents.Create("prop_vehicle_jeep") car:SetModel("models/mymodelofvehiculardedjfaksdjf") car:SetKeyValue("vehiclescript", "scripts/vehicles/mycarscript") car:SetPos(Vector(pos,on,map)) car:Spawn() end spawndavehiculardevice()[/LUA] [IMG]http://files.myopera.com/debplatt/smiley/shrug2.gif[/IMG]
Create a prop_vehicle_jeep, set the model and vehicle script. You should use additonal prisoner pods if you want to add additional seats, or use VU-Mod if you are using TDMcars.
How would I spawn it with ent_create?
Sorry, you need to Log In to post a reply to this thread.