how do i use it
and what does it do
does it enable ai to know where that unit is? or if its there?
how do i use it
and what does it do
does it enable ai to know where that unit is? or if its there?
Unit1 knowsabout Unit2
It will return a number between 0 and 1 depending on how much unit1 knows about unit2
to use correctly with an AI then put this in the condition field of a trigger
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Unit1 knowsabout Unit2 >0.5[/QUOTE]
And in the on activation field you can put whatever else you want.
a number between 0 and 4
"Peace can not be kept by force. It can only be achieved by understanding." Albert Einstein
Please report Arma 3 bugs in the Bug Tracker
More info about the command here:
http://www.ofpec.com/editors/comref.php?letter=K
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
it seems it really has no use
thanks anyways peeps
No use?![]()
![]()
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?("_x knowsabout (_list select _counter1) > 0" count units wgrp1 > 0): goto "firemission"[/QUOTE]
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?("_x knowsabout leo1 > 0" count units egrp1 > 0) || ("_x knowsabout leo2 > 0" count units egrp1 > 0) : airstrikeclient = true; publicvariable "airstrikeclient"; goto "servercontinue"[/QUOTE]
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?({_x knowsAbout _unit > 0} count list trig1 > 0): knows = true[/QUOTE]
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(ryssa distance (leader maingroup) < 100 && spiritedlock == 0) || (ryssa knowsabout (leader maingroup) > 3 && spiritedlock == 0): 5 fademusic 0; ["spirited"] exec "musics.sqs"[/QUOTE]
No use?![]()
![]()
sorry dude
i aint that advanced in scripting
i thought it was more of an infantry thing
than a airstrike type thing or artillery support command
Hi Ruff
What is it you wish to do?
Kind Regards Walker
You are only a bullet away from being stupid.
Yeah I also have to say, knowsabout is not ideal, but a very important command and very useful in many situations, the most important factor is that it is calculated by OFP core engine instead of a lot of scripting. It is a complex function to present to a scripting language, think about what may be involved in generating such a number.
1 thing about Knowsabout :
When the unit dies, it will take some time before knowsabout reaches zero![]()