Problem with mount turret on vehicle
by CIMO · in General Discussion · 06/02/2006 (7:03 am) · 4 replies
I have use this code for mount on turret in my vehicle:
Enter in a vehicle and all ok ...
Pass to mount turret and game STOP!?!?...The engine it does not answer...
HELP PLAEASE!!!!!
function Hummer::onAdd(%this,%obj)
{
$HummerCount ++;
for (%i = %obj.getWheelCount() - 1; %i >= 0; %i--) {
%obj.setWheelTire(%i,HummerTire);
%obj.setWheelSpring(%i,DefaultSpring);
%obj.setWheelPowered(%i,false);
}
// mount turret
%turret = new Turret()
{
dataBlock = GenericTurret;
};
// mount turret at whatever mount point
%obj.mountObject(%turret,1);
%obj.mountedTurret = %turret;
// Steer front tires
%obj.setWheelSteering(0,1);
// Only power the two rear wheels...
%obj.setWheelPowered(0,true);
%obj.setWheelPowered(1,true);
%obj.mountable = true;
%obj.setEnergyLevel(%this.MaxEnergy);
%obj.setRechargeRate(%this.rechargeRate);
%obj.playThread(0,"ambient");
}I have a hammer with two mount point one for driver one for turret...Enter in a vehicle and all ok ...
Pass to mount turret and game STOP!?!?...The engine it does not answer...
HELP PLAEASE!!!!!
#2
I try all....Ok I'M a STUPID BOY AND A IDIOT but i learn....I try and try...
according to you I want to disturb and to make the stupid if I succeeded to us?
This forum stay hear for this...I suppose
THANKS!!!
06/02/2006 (8:28 am)
WHAT?!?!? I buy the torque and others program and book...I would learn ALL on the world on game and you write this?!?!!?I try all....Ok I'M a STUPID BOY AND A IDIOT but i learn....I try and try...
according to you I want to disturb and to make the stupid if I succeeded to us?
This forum stay hear for this...I suppose
THANKS!!!
#3
I wish I could help you CIMO. To help stop your sufffering.
Once you have all the turret things worked out you should make
a full resource.
How to mount - Unmount to different objects.
How to Set a Players Arm threads while on turret
How to make player die Animation Play while on turret.
Interesting stuff.
:) SURGE
06/02/2006 (9:02 am)
I find Cimos posts very amusing. But hard to understand.I wish I could help you CIMO. To help stop your sufffering.
Once you have all the turret things worked out you should make
a full resource.
How to mount - Unmount to different objects.
How to Set a Players Arm threads while on turret
How to make player die Animation Play while on turret.
Interesting stuff.
:) SURGE
#4
But i have the problem when i put the turret in a vehicle....
Is my player change a position and mount on the turret....The game BLOCK!!
06/02/2006 (9:11 am)
For this "How to Set a Players Arm threads while on turret" i create the code....But i have the problem when i put the turret in a vehicle....
Is my player change a position and mount on the turret....The game BLOCK!!
Torque 3D Owner Sean H.