hello guys,
i found some tutorials for making a tank move and all that kinda shioot, so i was thinking of making a truck. i thought it would be the same thing (the script that is), but when i test my map, the only thing that moves are my trucks front wheels and the rest stays at the same spot. i searched all over the internet, including all possible mapping forums, but never I find a solution. Can anyone please give mean example of a simple moving truck script, without redirecting me to ‘take a look at the goldrush script’? bcause that scrip is way to complicated.
i’ll give you guys the script i have so far (maybe for real pro mappers this things could mean the apocalypse for them right now because … i’m not that kinda pro type :D) . If my script is sooooo horrible, then please help me out 8)
good luck and thanks in advance.
! WARNING: HEART ATTACK COULD BE A RESULT AFTER READING THIS SCRIPT ! :
game_manager //this is triggered by the script multiplayer in your map
{
spawn
{
wait 200
}
}
truck //scriptname of script_mover
{
spawn
{
wait 300
followspline 0 spl_01 50000 length 32 wait //spawn the tank to here
trigger self truck_path //goto tank_path
}
trigger truck_path
{
//here is the commands the mover will follow
stopsound
playsound sound/vehicles/truck/truck_move.wav looping volume 512
//play a tank sound
followspline 0 spl_01 100 wait length 304
//this says goto spl_01 at a speed of 100 and don't look at
//the next command until after waiting 304
followspline 0 spl_02 100 wait length 304
followspline 0 spl_03 100 wait length 304
followspline 0 spl_04 100 wait length 304
followspline 0 spl_05 100 wait length 304
followspline 0 spl_06 100 wait length 304
followspline 0 spl_07 100 wait length 304
followspline 0 spl_08 100 wait length 304
followspline 0 spl_09 100 wait length 304
followspline 0 spl_10 100 wait length 304
followspline 0 spl_11 100 wait length 304
followspline 0 spl_12 100 wait length 304
followspline 0 spl_13 100 wait length 304
followspline 0 spl_14 100 wait length 304
followspline 0 spl_15 100 wait length 304
followspline 0 spl_16 100 wait length 304
followspline 0 spl_17 100 wait length 304
followspline 0 spl_18 100 wait length 304
followspline 0 spl_19 100 wait length 304
followspline 0 spl_20 100 wait length 304
followspline 0 spl_21 100 wait length 304
followspline 0 spl_22 100 wait length 304
followspline 0 spl_23 100 wait length 304
//add more lines for how many more splines u have
//notice that you don't include scripting for spline controls
trigger self truck_path
//repeat tank_path part of the script, remove this line
//if u don't won't it to loop
}
}
truck_shell
{
spawn
{
wait 400
attachtotag truck tag_truck
//this attaches the tank_shell to the scriptmover tank
}
}
i took the script from a tutorial for tanks, so maybe that’s why you’re looking like this: :o
grtz

Worry when you get over 10k lines
Anyway, I assume from your lack of stopcheck that you just want the truck to automatically follow its path at map start, right?
