Welcome to PenUltima Online. Click to login or register.

Functions:

ListHostiles( character, range := 20, flags := 0 )
Parameters:
Name Type
character Character Reference
range integer (optional, default=20)
flags integer (optional, default=0)
Explanation
Gets a list of Character References that are hostile (i.e. attacking) "character"
Notes: from uo.em constants:
const LH_FLAG_LOS               := 1;       // only include those in LOS
const LH_FLAG_INCLUDE_HIDDEN    := 2;       // include hidden characters
Will NOT find "concealed" characters.
Return values
Array of Character References hostile to "character"
Errors
"Invalid parameter"
Related
Character
Array