Game Development Community

When I dismount vehicle I pop right back into car

by Jeffrey J. Sykes, "SYKO_RIP" · in Torque Game Engine · 12/10/2003 (3:39 pm) · 3 replies

Question: When I dismount vehicle, I pop right back into car. After 4 or 5 times then I can get out. Is their a value somewhere I can change so I can delay my return to the vehicle?

TY 4 your time,
OUT

#1
12/10/2003 (11:27 pm)
Yea you know its kinda funny this typo is still there..
but in the player.cs

find line 756:
%obj.mountVehicle = false;
   %obj.schedule(4000, "setMountVehicle", true);

see the schedule? it's calling setMountVehicle for this object.... well analyzing further down the file line 921
we will locate a function named :
function Player::mountVehicles(%this,%bool)

fix this problem by repairing this typo.
#2
12/11/2003 (5:02 am)
Huh, funky.

Checked in the fix.

(Thanks Badguy)
#3
12/11/2003 (12:52 pm)
Actually the code was fine on my version, but I found I did this:

%obj.mountVehicle = true;
%obj.schedule(4000, "mountVehicles", true);

should be:

%obj.mountVehicle = false;
%obj.schedule(4000, "mountVehicles", true);

Thanks for the help! You got me going in the right direction.

SYKO_RIP_OUT