Leadwerks Game Engine

Leadwerks Game Engine

Not enough ratings
Playable car
   
Award
Favorite
Favorited
Unfavorite
Type: Prefab
File Size
Posted
Updated
1.278 MB
17 Aug, 2015 @ 1:18am
17 Aug, 2015 @ 3:35pm
2 Change Notes ( view )

Subscribe to download
Playable car

Description
Put a playable car in your game as in GTA !

Try it here first if you want:
http://www.leadwerks.com/werkspace/page/viewitem?fileid=501075238

Very easy to install:

1) Put all the files in the /Leadwerks/Projects/(YourNameProject)/
2) Load your map, on your character, load the "FPSPlayer1.lua" script
3) Put in your world the OldCar.pfb out of the Prefabs
4) Run your game, you should be able to drive.

DON'T RENAME THE FOLDERS OR YOU WILL HAVE TO CHANGE THE SCRIPTS !!
NOTE: Scene - Root - Gravity should be to 25 for optimal run with those prefabs settings.

Move player= W,A,S,D
Jump: SpaceBar
Get in car=E
Get out car= BackSpace

Motor On/Off = Num Pad 1
Drive= Num Pad 2,4,8,6 (for directions)
brake= Space bar

Light On/Off= L

Camera free (in car):
Mouse Right Button + wheel

enjoy
Marcousik
5 Comments
Marcousik  [author] 8 Nov, 2016 @ 4:05pm 
Yes like everything in LE workshop should be.
Marcousik  [author] 8 Aug, 2016 @ 2:14am 
SmirkSmileGrin 5 Feb, 2016 @ 1:04pm 
Yup thank you, I figured that out once I saw the FPSplayer1 shortly after posting on this thread. It works great!
Marcousik  [author] 5 Feb, 2016 @ 8:53am 
You have to replace the FPSPlayer.lua on your player with the FPSPlayer1.lua that has been downloaded with the workshop car. Look at this in your scripts. I tested then it runs.
I wrote this in the workshop install instructions...
SmirkSmileGrin 2 Jan, 2016 @ 10:44pm 
The game demo you made to demonstrate the car was fantastic. I love the start car fucntion, gas consumption and handling you put in. I tried to incorporate the car into an environment of my own i got and error Player.entity.script:WeaponHide(0) with this .The error with that part of the code was attempt to call WeaponHide (a nil value). Not sure what i did wrong.