• Vehicle Mechanics?
    1 replies, posted
I'm trying to create a vehicle, and I can't seem to do it. I've looked everywhere. If anybody could give me the basics of vehicle creation, it would be appreciated.
[lua]// // Create a Vehicle // local _v = ents.Create( "prop_vehicle_jeep" ); _v:SetPos( Vector( 0, 0, 0 ) ); _v:SetAngles( Angle( 0, 0, 0 ) ); _v:SetModel( "path/to/model.mdl" ); _v:SetSkin( 1 ); _v:SetKeyValue( "vehiclescript", "scripts/vehicles/jeep.txt"); _v:Spawn( ); _v:Activate( ); // Required to prevent prop_vehicle_airboat from crashing on enter [/lua]
Sorry, you need to Log In to post a reply to this thread.