Scripting Drivable Tanks: HELP
Posted: Sat Nov 27, 2004 10:01 pm
Hello all...I'm having trouble with one of the site's tutorials...scripting drivable tanks...it's found here: /t.php?id=72
I followed that tutorial very carefully (worked with it practically all day), and am still having trouble...I think it left some very key things out and it was hard to understand when I came to the scripting part...I am 110% sure I did the mapping part right, as the tank and it's mask are connected and the target and targetname paths and key/value paths are correct.
After the mapping part, it tells me in the tutorial the following:
"...Make sure you change the targetnames and file name to match the ones in your map."
The file name being the name of the new .map after I saved it should be like this: obj_territory.map (obj_territory is my map's name)
The targetnames suit my map because there is a connecetion between my tank and it's mask as I said before...
Does that statement mean there is something else I have to change? Is what I have to change IN the script? Here is the script the tutorial gives me and tells me to edit to go with my map:
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 200
end
What would I have to change in that script to make my tank drivable if the mapping part is all correct?
Thanks,
GoldenEye
I followed that tutorial very carefully (worked with it practically all day), and am still having trouble...I think it left some very key things out and it was hard to understand when I came to the scripting part...I am 110% sure I did the mapping part right, as the tank and it's mask are connected and the target and targetname paths and key/value paths are correct.
After the mapping part, it tells me in the tutorial the following:
"...Make sure you change the targetnames and file name to match the ones in your map."
The file name being the name of the new .map after I saved it should be like this: obj_territory.map (obj_territory is my map's name)
The targetnames suit my map because there is a connecetion between my tank and it's mask as I said before...
Does that statement mean there is something else I have to change? Is what I have to change IN the script? Here is the script the tutorial gives me and tells me to edit to go with my map:
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 200
end
What would I have to change in that script to make my tank drivable if the mapping part is all correct?
Thanks,
GoldenEye