Difference between revisions of "GetCombatTarget - Actor"
Jump to navigation
Jump to search
→Examples
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Leonfenten |
||
Line 22: | Line 22: | ||
Debug.Trace("Bob is in combat with the player!") | Debug.Trace("Bob is in combat with the player!") | ||
endIf | endIf | ||
; Below will only return a valid actor ID while your | |||
; cursor is pointing directly on an actor | |||
TargetRef = Game.GetPlayer().GetCombatTarget() | |||
Debug.Trace("My target was " + TargetRef) | |||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |