Page 1 of 1
whats wrong
Posted: Mon Jul 11, 2005 1:13 am
by Heald
i tried to make a level with the tank to drive but everytime i spawn it says the king tiger tank has been lost mission failed. anyone see a problem with this script?
Code: Select all
level waittill prespawn
level waittill spawn
main:
$playertank.collisionent = $playertank.target
level.playertanktarget = $player
$player holster
$player takeall
$player physics_off
$playertank waitthread global/vehicles_thinkers.scr::players_tank
$playertank vehiclespeed 300
end
it says to do that in this sites tut soooo...
Posted: Mon Jul 11, 2005 2:29 am
by Mj
Try this.. long shot but!
Code: Select all
main:
level waittill prespawn
level waittill spawn
$playertank.collisionent = $playertank.target
level.playertanktarget = $player
$player holster
$player takeall
$player physics_off
$playertank waitthread global/vehicles_thinkers.scr::players_tank
$playertank vehiclespeed 300
end
Posted: Mon Jul 11, 2005 3:44 am
by lizardkid
lol... i remember when i used to make mistakes lke that...
if that doesnt work open console and let's see the errors. i usually do a restart and then check for errors, because the level loading has a lot of spam in it, good for the programmers bad for the scripters. just scroll up a small way after teh restart and you should find something like
Code: Select all
BAD TOKEN:
TOKEN_BRACE_LEFT:
}
at line 500
taken striaght from my console..
Posted: Mon Jul 11, 2005 4:43 pm
by Heald
when i looked at the console yesterday it said a WHOLE bunch of stuff basically saying it didnt know what the script was saying... ill try ur solution mj
Posted: Mon Jul 11, 2005 6:05 pm
by lizardkid
if you're loading a script or using threads from a different script: if that script fails in any way (including if you call the thread wrong) it'll throw a whole bunch of errors that aren't really errors out because it just stamped a big REJECTED on the script.
so that's why you should do a restart, his esc imediately, open console scroppt up to your restart command and find the first error from there.