whats wrong

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Heald
Corporal
Posts: 47
Joined: Sat Jul 02, 2005 1:17 am

whats wrong

Post 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...
Heald
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post 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
ImageImage
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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..
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Heald
Corporal
Posts: 47
Joined: Sat Jul 02, 2005 1:17 am

Post 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
Heald
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply