Ive started a new map with a friend and im creating the bomb/script for the new map. I have it so that the allies can planet the bombs and once both bombs have blown the allies win without any probs.
After further testing ive since found out that for some reason the axis cant defuse the bomb so once the bomb has been set it cannot to defused. Ive posted the script here to be looked at, so can someone please tell me what it is ive done wrong.
// cannonbomb
// ARCHITECTURE: us
// SCRIPTING: us
setcvar "g_obj_alliedtext1" "Destroy the main"
setcvar "g_obj_alliedtext2" "turrets"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" "Defend the turrets"
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none"
// Allied victory test
allies_win_bomb:
while(level.targets_destroyed < level.targets_to_destroy)
waitframe
teamwin allies
end
// Axis victory test
axis_win_timer:
level waittill axiswin
end
Ive obviously missed somthing out somewhere, is it possible that there is somthing in the actual map missing that could cause the problem or is it likely to be the script itself causing the problem.
I know that one will make Dan think he is stupid, but it shouldn't. It has happened to the best of us many times. You look at the line a dozen times and don't see it. It sure is nice to be able to post it so others eyes can look at the problem too!
However make sure to always check your console for errors. I think mohaa will give you an error when you type "axis, and evaluate level.defusing_team to NIL (that's why you couldn't defuse actually).
Always remember the game can spot typos much quicker than you can
Yeh, i use 'logfile 2' in the console. Or with smaller scripts enable developer in console, Scroll up and it takes you to the error. Very handy for finding mistakes/typos.