JumpToWeakestEnemy
Contents |
[edit] JumpToWeakestEnemy(object)
Makes the caller jump to the most damaged enemy.
void JumpToWeakestEnemy( object oTarget );
[edit] Parameters
oTarget
A member of the faction to find an enemy within
[edit] Description
Makes the caller jump to the member of oTargetâs faction that has taken the most damage. It will not jump to creatures less than 4 meters away, and not to creatures it hasnât seen (so thereâs no risk of this causing the caller to jump to another area). The summon undead visual effect is applied, and the caller will attack the creature it jumped to.
[edit] Remarks
Found in nw_c2_dimdoor.nss on line 14
Note that nw_c2_dimdoor is not an include file, so you canât include the function in your script the normal way. You can copy â paste it, though.
This script is used by the blink dog. Check the blink dogâs OnSpawn and OnUserDefined scripts for one way of using this function. The blink dog can be found in the standard palette â monsters â planar â other.
[edit] Version
1.28
[edit] See Also
author: Lilac Soul, additional contributor(s): Lilac Soul