Skul 0 Posted February 9, 2003 Hi, this isn't really important for any missions I am currently making, but useful if I want to use it sometime. There are several missions in the campaigns where you spot something with your binoculars and the objective is complete and/or markers appear on your map. Help me, and other people who want to know this, out please. Share this post Link to post Share on other sites
PiNs_Da_Smoka 0 Posted February 9, 2003 In the original campaign, the mission "Scouting", i believe it is, is a good example. Its really simple actually. In the area where you have to find the enemy camp, there are several triggers in that area, and each is set to "Detected by West", and then "detekavano=true" is set, or something along those lines. So, having something detected by a trigger is really all you need. Share this post Link to post Share on other sites
Skul 0 Posted February 10, 2003 Ha! Easy as that, eh? I would've thought there'd be some sorta external scripting needed. BTW, anybody, if PiNs_Da_Smoka's code is wrong, please correct it, because it's a rather cool, erm.. thing. lol Share this post Link to post Share on other sites
JAP 2 Posted February 10, 2003 If you use the "knowsabout" command you can have 4 degrees of detecting. 1 least => 4 : knows exactly where enemy is. Especially with binocs us the knowsabout command at 4. I m at work now, but something along the lines of </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit knowsabout enemy >4<span id='postcolor'> I ll correct tonight when home. Cheers Share this post Link to post Share on other sites
Bart.Jan 0 Posted February 10, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (JAP @ Feb. 10 2003,16:42)</td></tr><tr><td id="QUOTE">If you use the "knowsabout" command you can have 4 degrees of detecting. 1 least => 4 : knows exactly where enemy is. Especially with binocs us the knowsabout command at 4. I m at work now, but something along the lines of </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">unit knowsabout enemy >4<span id='postcolor'> I ll correct tonight when home. Cheers<span id='postcolor'> But "knowsabout" doesn't work properly for player. It's ok for AI soldiers but player's results vary. There is some mention about it in some post from Suma. Share this post Link to post Share on other sites
Spitfire 0 Posted February 10, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (JAP @ Feb. 10 2003,17:42)</td></tr><tr><td id="QUOTE">If you use the "knowsabout" command you can have 4 degrees of detecting. 1 least => 4 : knows exactly where enemy is. Especially with binocs us the knowsabout command at 4.<span id='postcolor'> The knowsabout level is a stepless decimal number ranging from 0 to 4, not 1 to 4, and certainly not 4 distinct degrees of detecting. There are some "treshold values" however, like knowsabout of 1.5 seems to be the one where the AI knows the actual side of the unit (friendly/enemy). It's hard to tell what the values really indicate, or how they are linked to actually knowing the position of the enemy. Knowsabout seems also to be stuck at 1.5 when the AI knows that there is an enemy somewhere, but not sure where. Then it gradually starts to fall below 1.5 until the enemy reveals his presence again. Value of 4 seems to indicate that the AI knows the exact type and position of the enemy, but values ranging from 1.5 to 4 (and their meaning) are a bit of a mystery for me. Share this post Link to post Share on other sites
PiNs_Da_Smoka 0 Posted February 11, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Skul @ Feb. 10 2003,03:14)</td></tr><tr><td id="QUOTE">Ha! Easy as that, eh? Â I would've thought there'd be some sorta external scripting needed. BTW, anybody, if PiNs_Da_Smoka's code is wrong, please correct it, because it's a rather cool, erm.. thing. Â lol<span id='postcolor'> I was just using the official mission "Scouting" as one example. So i can't be wrong! Share this post Link to post Share on other sites