First things first, did you set your tank model as always active in it's editor properties (right click the tank and select properties set always active to yes)?
As to the script, there's a few minor errors in there, some -turnSpeed instead of turnSpeed, a few erroneous spaces and misspellings, nothing major.
Here's the actual script Ravey used:
inCar = 0
speed = 0
maxSpeed = 1000.0
turnSpeed = 250
waitForKeyRelease = 0
function car_init(e)
end
function car_main(e)
if GetPlayerDistance(e) < 150 and inCar == 0 and waitForKeyRelease == 0 then
Prompt ( "Press E to Enter" )
if g_KeyPressE == 1 then
inCar = 1
waitForKeyRelease = 1
end
end
if inCar == 1 then
TransportToIfUsed(e)
CollisionOff(e)
if g_KeyPressW == 1 then
speed = speed + 10
else
speed = speed - 5
end
if g_KeyPressA == 1 then
RotateY(e,-turnSpeed)
end
if g_KeyPressD == 1 then
RotateY(e,turnSpeed)
end
if g_KeyPressS == 1 then
speed = speed - 10
end
if speed < 0 then
speed = 0
end
if speed > maxSpeed then
speed = maxSpeed
end
MoveForward ( e , speed )
if g_KeyPressE == 1 and waitForKeyRelease == 0 then
inCar = 0
waitForKeyRelease = 1
end
end
if g_KeyPressE == 0 then
waitForKeyRelease = 0
end
end
Also make sure your tanks FPE is correct, here's the FPE RAvey used in his video:
;header
desc = Lil_Car
;visualinfo
textured = lil_car_D.png
effect = effectbank\reloaded\entity_basic.fx
castshadow = 0
;orientation
model = lil_car.x
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
defaultstatic = 1
materialindex = 2
collisionmode = 0
;statistics
strength = 25
explodable = 0
;ai
aimain = default.lua
I've also attached all the models and files, as well as the map that Ravey used, you may be able to look on there and see where you are going wrong.
i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.