Page 1 of 1

Possible to spawn cars from gmod?

Posted: Thu Jul 02, 2009 7:35 am
by JigglyWiggly
Ok so... I'm pretty sure this is possible, though I'm not too sure. http://www.garrysmod.org/downloads/?a=view&id=60653 This car here the Z06, is it possible for it to spawn it into obsidian? Looking at the files, it doesn't seem that special. So if it is possible for this car, wouldn't it be possible for other cars as well? I just don't know how to spawn a vehicle in game. I mean jeep ch_Create w/e, but how would you do this? prop_physics_create doesn't work, so I'm out of ideas. Anyone else got an ideas? (Oh and just to clarify, I want it derivable :D)

Posted: Thu Jul 02, 2009 10:26 am
by Blues
Open hammer, drop a prop_vehicle_jeep or whatever in your map and set this one as its model.

Posted: Thu Jul 02, 2009 10:32 am
by Keychain
Jiggly, if you plan on asking more questions, please consider making yourself a question thread or something rather then making 100 different ones.

Posted: Thu Jul 02, 2009 11:34 am
by JerC
Keychain wrote:Jiggly, if you plan on asking more questions, please consider making yourself a question thread or something rather then making 100 different ones.
He think this is QUESTION CONFLICT.

Posted: Thu Jul 02, 2009 2:43 pm
by JigglyWiggly
-=jerC=- wrote:
Keychain wrote:Jiggly, if you plan on asking more questions, please consider making yourself a question thread or something rather then making 100 different ones.
He think this is QUESTION CONFLICT.
Christ that was lame, and I usually laugh at insults towards me. All you do is comment if someone double posts. Another note, this forum isn't very active, asking questions keeps it alive. Ever thought of that? Nope.
Blues wrote:Open hammer, drop a prop_vehicle_jeep or whatever in your map and set this one as its model.
Thanks for the actual answer, though I had already thought of that(really), but it's my fault I didn't clarify that, also they lose a lot of their properties liek their sounds, and they crash when I get in them, well sometimes. But I was wondering if it was possible to create it from the console. Like(random guess), ent_create prop_vehicle_jeep addoutput something
I have no idea, but just guessing.

Posted: Thu Jul 02, 2009 3:01 pm
by JerC
Erm,you didnt double posted.

Posted: Thu Jul 02, 2009 6:46 pm
by Neico
also keychain is right, do what she says

just ignore everyone that got a warning stage, they deserve it to be ignored

Posted: Thu Jul 02, 2009 7:00 pm
by Blues
I think it should be something like this:

ent_fire prop_vehicle_jeep (or whatever) addoutput "model *model-path-and-name*"

You might mess around with the quotation marks as I'm not really sure.

Otherwise just copy the vehicle script from your gmod\scripts\verhicles to your obsidian\scripts\vehicles folder, select it as script to use for the jeep with changed model in hammer and see if that works.