Page 1 of 2 12 LastLast
Results 1 to 10 of 17

  Click here to go to the first Developer post in this thread.  

Thread: knowsabout command

  1. #1
    how do i use it
    and what does it do
    does it enable ai to know where that unit is? or if its there?

  2. #2
    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 &#62;0.5[/QUOTE]
    And in the on activation field you can put whatever else you want.

  3.   Click here to go to the next Developer post in this thread.   #3
    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

  4. #4
    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

  5. #5
    Master Gunnery Sergeant
    Join Date
    Feb 25 2003
    Posts
    1,110
    Author of the Thread
    it seems it really has no use
    thanks anyways peeps

  6. #6
    No use?

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?&#40;&#34;_x knowsabout &#40;_list select _counter1&#41; &#62; 0&#34; count units wgrp1 &#62; 0&#41;&#58; goto &#34;firemission&#34;[/QUOTE]

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?&#40;&#34;_x knowsabout leo1 &#62; 0&#34; count units egrp1 &#62; 0&#41; &#124;&#124; &#40;&#34;_x knowsabout leo2 &#62; 0&#34; count units egrp1 &#62; 0&#41; &#58; airstrikeclient = true; publicvariable &#34;airstrikeclient&#34;; goto &#34;servercontinue&#34;[/QUOTE]

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?&#40;{_x knowsAbout _unit &#62; 0} count list trig1 &#62; 0&#41;&#58; knows = true[/QUOTE]

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?&#40;ryssa distance &#40;leader maingroup&#41; &#60; 100 && spiritedlock == 0&#41; &#124;&#124; &#40;ryssa knowsabout &#40;leader maingroup&#41; &#62; 3 && spiritedlock == 0&#41;&#58; 5 fademusic 0; &#91;&#34;spirited&#34;&#93; exec &#34;musics.sqs&#34;[/QUOTE]

    No use?

  7. #7
    Master Gunnery Sergeant
    Join Date
    Feb 25 2003
    Posts
    1,110
    Author of the Thread
    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

  8. #8
    Hi Ruff

    What is it you wish to do?

    Kind Regards Walker

    You are only a bullet away from being stupid.

  9.   This is the last Developer post in this thread.   #9
    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.

  10. #10
    Master Gunnery Sergeant
    Join Date
    Jul 15 2003
    Location
    Belgium, the land of surialism
    Posts
    1,003
    1 thing about Knowsabout :

    When the unit dies, it will take some time before knowsabout reaches zero

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •