Here is a additional example, it will show you all the enemies and friends nearby and some of their data:
Code:
$OBject = IterateObjectList(0)
_ArraySort($OBject, 0 , 0 , 0 ,8)
for $i = 0 to UBound ( $OBject ,1 )-1
if $OBject[$i][7] = 29944 and $OBject[$i][1] <> 0xFFFFFFFF and $OBject[$i][1] <> 0x77BC0000 Then
ConsoleWrite("Proxy Name: " & $Object[$i][2]&@crlf& _
" Localized Name: " & $Object[$i][10]&@crlf& _
" Level: " & IterateActorAtribs( $Object[$i][1],$Atrib_Level)&@crlf& _
" PosX: " & $Object[$i][3]&@crlf& _
" PosY: " & $Object[$i][4]&@crlf& _
" PosZ: " & $Object[$i][5]&@crlf& _
" Distance: " & GetDistance($Object[$i][3],$Object[$i][4],$Object[$i][5])&@crlf& _
" Kind: " & $_Const_MonsterType[$Object[$i][11]+1]&@crlf& _
" Race: " & $_Const_MonsterRace[$Object[$i][12]+1]&@crlf& _
" Current Health: " & IterateActorAtribs( $Object[$i][1],$Atrib_Hitpoints_Cur)&@crlf & _
" Max Health: " & IterateActorAtribs( $Object[$i][1],$Atrib_Hitpoints_Max_Total)&@crlf)
EndIf
Next