TheJokerMan 0 Posted August 24, 2006 hey hey! ok im trying to make an outro for my map. i already have an intro which is called "introcam.sqs" right? and i put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[] exec "introcam.sqs." in the INIT field of a unit, and that works fine... but now im trying to make an outro named "outrocam.sqs" so i made a little test one and tried to get it to run but it didnt work, i put <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[] exec "outrocam.sqs" in the ACTIVATION line of a trigger and obj1 && obj2 && obj3 && obj4 in the CONDITION line but nothing happened. what am i doing wrong? Share this post Link to post Share on other sites
Metal Heart 0 Posted August 25, 2006 Nothing wrong there. Either there's something wrong with the script or the conditions are not met. Share this post Link to post Share on other sites
SevenBEF 0 Posted August 31, 2006 Whenever I want to run a quick test on the objective triggers, I use a radiotrigger. So if you make a trigger activated by radio Bravo for example and in its activation put [] exec "outrocam.sqs" you'll see if the camscript works or not. After that make another radio trigger & in its activation field put obj1 = true && obj2 = true && obj3 = true && obj4 = true to activate ur initial trigger. If that doesn't work check ur objective triggers I recon Share this post Link to post Share on other sites
kutya 0 Posted August 31, 2006 In my experience you can't have so many &&s or ||s grouped. Try to group them by two like: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ((obj1 && obj2 ) && (obj3 && obj4)) Not sure about this, but maybe this is the problem. Share this post Link to post Share on other sites
Jamoose 0 Posted August 31, 2006 Would the [] possibly not work in a trigger but only in an init field? You could try replacing the [] with an actual unit, making the trigger activated by that (or any) unit. Share this post Link to post Share on other sites
Metal Heart 0 Posted September 1, 2006 Quote[/b] ]n my experience you can't have so many &&s or ||s grouped. Try to group them by two like:Code Sample ((obj1 && obj2 ) && (obj3 && obj4)) Or you could use numerical values instead of boolean... obj1=1; obj2=1; obj3=1; condition: (obj1 + obj2 + obj3) == 3 activation: alldone=true I'm not sure what would happen if you'd sum booleans, like true+true+false, would that return 2, true or false or just give an error message. Share this post Link to post Share on other sites