Difference between revisions of "GetCombatTarget"

Jump to navigation Jump to search
196 bytes added ,  10:18, 9 October 2008
m
Very Minor edit, changed a few words around clarifying what a solution achieved in regards to the player's combat targets.
imported>Shademe
(Added methods to find PC's combat targets)
imported>Antares
m (Very Minor edit, changed a few words around clarifying what a solution achieved in regards to the player's combat targets.)
Line 4: Line 4:
Returns the calling actor's current combat target.   
Returns the calling actor's current combat target.   


Player.GetCombatTarget will always return 0 as the game cannot read the player's mind.
Player.GetCombatTarget will always return 0 as the game cannot read the player's mind.<BR>
== Notes ==
''- A loose workaround for this can be done by checking the combat targets of any NPC's within a given proximity of the Player, see below.''
*To get the player's combat targets, you can either cast an AoE spell in the vicinity of the player, with the script attached to the spell could be:
==Retrieving the Player's Potential Combat Targets==
*To get the player's potential combat targets, you can either cast an AoE spell in the vicinity of the player, with the script attached to the spell could be:


<pre>begin scriptEffectStart
<pre>begin scriptEffectStart
Anonymous user

Navigation menu