Jump to content
Sign in to follow this  
Nevres

Knowsabout command giving me trouble

Recommended Posts

i have a waypoint that i want to activate when a unita knows about a scud launcher so i placed in its condition field this:

unita knowsabout scud2 > 1

it worked in flashpoint but it doesnt work in resistance, why? am i doing something wrong?

i also tried syncronizing a trigger with the same condition and the waypoint in hold, but nothing

help is appreciated

Share this post


Link to post
Share on other sites

You should have it in brackets:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">(unita knowsabout scud2) > 1<span id='postcolor'>

RED

Share this post


Link to post
Share on other sites

it doesnt work either

any other suggestions?

Share this post


Link to post
Share on other sites

Make a trigger with the same condition:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">(unita knowsabout scud2) > 1<span id='postcolor'>

And in the on activation field put:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">Hint "Scud detected"<span id='postcolor'>

This will check to see if the knowsabout command it going to work for you.

Also one thing, make sure that unita is not the player as some people have reported problems with using the knowsabout command with the player.

If you want to find out how much that unit 'knowsabout' the scud use something like:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#loop

hint format ["unit a knowsabout scud2 %1", (unita knowsabout scud2)]

~1

goto "loop"

<span id='postcolor'>

RED

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  

×