Poll

watch unit is your fav? and vote for more units

Terran siegetank
Terran Golith
terran battlecruiser
Zerg Zergling
terran bunker
terran viking
terran thor

Author Topic: -=SC Terran Pack( 85% compleated )=-  (Read 32101 times)

fixed that still wolnt move :/


fixed that still wolnt move :/

No you didn't

Replace every instance of 'lightTank' in the script with Vulture.
Right now all the datablocks are named correctly, but they call for lightTank datablocks, which isn't want you want. The functions especially need to renamed.

k replacing all lighttank with Vulture

ok there on and it moves but it cant turn now :/

gimme the new script please

k

Try commenting out the following function:

Code: [Select]
function VultureVehicle::onAdd(%this,%obj)
{
for(%i = 0; %i < %this.numWheels; %i++)
{
%obj.setWheelTire(%i, %this.defaultTire);
%obj.setWheelSpring(%i, %this.defaultSpring);
}
%obj.setWheelSteering(0,1);
%obj.setWheelSteering(1,1);
%obj.setWheelSteering(2,-1);
%obj.setWheelSteering(3,-1); 
%obj.setWheelPowered(0,true);
%obj.setWheelPowered(1,true);
%obj.setWheelPowered(2,true);
%obj.setWheelPowered(3,true);
VultureEngineCheck(%obj);
}

(type two forward slashes (//) in front of each line of the function)

so....it would look like this?


Code: [Select]
function VultureVehicle::onAdd(%this,%obj)//
{
for(%i = 0; %i < %this.numWheels; %i++)//
{
%obj.setWheelTire(%i, %this.defaultTire);//
%obj.setWheelSpring(%i, %this.defaultSpring);//
}
%obj.setWheelSteering(0,1);//
%obj.setWheelSteering(1,1);//
%obj.setWheelSteering(2,-1);//
%obj.setWheelSteering(3,-1);//
%obj.setWheelPowered(0,true);//
%obj.setWheelPowered(1,true);//
%obj.setWheelPowered(2,true);//
%obj.setWheelPowered(3,true);//
VultureEngineCheck(%obj);//
}

ugh lol no

I guess I should have said 'at the beginning of each line'

so then..like this? :P


Code: [Select]


//function VultureVehicle::onAdd(%this,%obj)
{
//for(%i = 0; %i < %this.numWheels; %i++)
{
//%obj.setWheelTire(%i, %this.defaultTire);
//%obj.setWheelSpring(%i, %this.defaultSpring);
}
//%obj.setWheelSteering(0,1);
//%obj.setWheelSteering(1,1);
//%obj.setWheelSteering(2,-1);
//%obj.setWheelSteering(3,-1);
//%obj.setWheelPowered(0,true);
//%obj.setWheelPowered(1,true);
//%obj.setWheelPowered(2,true);
//%obj.setWheelPowered(3,true);
//VultureEngineCheck(%obj);
}

Yes, but you also need to comment out the curly brackets

i did and now its not showing on the spawn menu...>.<

i did and now its not showing on the spawn menu...>.<

ugh, what does the function look like currently?

Actually can you send the the whole file again. :S
« Last Edit: July 30, 2013, 05:36:53 PM by ArmyUnit »

i will tommrow my mom made me get off >.>