Jump to content
Sign in to follow this  
rellikki

knowsAbout command broken?

Recommended Posts

Quoting from BIS Wiki:

In ArmA (other not tested), KnowsAbout value will stay at its highest value during aproximatively 2-3 min and then reinitialised.

I tested it in editor and it is indeed so. The knowsAbout value will stay at the peak value 4, once the unit has spotted its target, even when the target goes hiding and there is no way the unit could know about him anymore.

Why has it been done like this? Is it going to be fixed?

The knowsAbout command worked fine in OFP - The value would decrease when the target goes too far away, or the unit loses its sight to him.

I wanted to make a script which checks which one of a select few units knows the most about the player, but now it's not going to work. :(

Share this post


Link to post
Share on other sites

I suggest using nearTargets instead, especially the accuracy value. You might be able to sort the loon which has the most accurate assumption.

Although IIRC, infos are shared along group members (i guess a workaround to keep CPU impact lower for KI, sharing knowledge within the group).

Share this post


Link to post
Share on other sites

Thanks. I wasn't expecting any other way to do it, hence I posted it here in the troubleshooting section rather than the mission editing section. I will try to see if it works, but it looks a little more complicated.

Though, I'm still wondering why did they change the knowsAbout command like that.

Share this post


Link to post
Share on other sites
Though, I'm still wondering why did they change the knowsAbout command like that.

Good question....next question. :D

You might also use the position reference that neartargets returns. Afaik it is assumed position so you could check who made the best guess, maybe with accuracy as some sort of modifier.

At the end maybe even more accurate to what you try to do than knowsabout.

Share this post


Link to post
Share on other sites
Though, I'm still wondering why did they change the knowsAbout command like that.

AFAIK it returns how much the AI knows about the side of someone else, and it would be odd if they slowly forget that. So it seems like they now keep it in 'mind' until they think its no longer relevant i think.

It may have some deeper technical reasons, but i wouldnt know about those. :p

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×