Hi all,
well my question is pretty simple I hope. I wrote an Iterator and it seem to work.
But I use a third person camera and I'm checking for visible Pawns in range. It looks like my condition was written wrong because I don't want the owner pawn to be recognized but it does.
When I start the Iterator in game, I just get:Code:exec function CheckEnemy() { local Pawn checked; ForEach VisibleActors( class'Pawn', checked, 64,(Pawn != None) ? Pawn.Location : Location ) { if (checked != none && checked != Owner) { `log("Enemy In Range"); } else if (checked != none && checked == Owner) { `log("Something in Range"); } else { `log("Nothin in Range"); } } }
"Enemy in Range" although I can just see myself.
I get
"Enemy in Range"
"Enemy in Range"
when I see myself and the enemy pawn at once. What have I done wrong? Can someone help me with this?



Reply With Quote
![Send a message via ICQ to Blade[UG]](images/styles/TwistedDark/misc/im_icq.gif)
![Send a message via AIM to Blade[UG]](images/styles/TwistedDark/misc/im_aim.gif)
![Send a message via MSN to Blade[UG]](images/styles/TwistedDark/misc/im_msn.gif)
![Send a message via Yahoo to Blade[UG]](images/styles/TwistedDark/misc/im_yahoo.gif)



Bookmarks