API:TargetPlayer
Aus WARWiki
Diese Funktion wurde mit EU Patch 1.06 (US 1.05) entfernt, und steht nicht mehr zur Verfügung.
Changes the active target to the named player.
Nutzung
local success = TargetPlayer(playername)
Arguments
* playername (wstring)
- The name of the player to target.
Return Values
* success (boolean)
- Set to true if the targeting was successful, false otherwise.
As the name implies, this only works for players; it will not target mobs or npcs. (has to be rechecked; it may target mobs and npcs after all.)
Example This will target yourself.
/script TargetPlayer(towstring(GameData.Player.name))
If the name of a friendly player is specified, this will change your friendly target; if a hostile player is specified, it will change your hostile target.
If passed an empty string (L"") this will clear both targets.