WoW:API FollowUnit: Difference between revisions

m
Move page script moved page API FollowUnit to WoW:API FollowUnit without leaving a redirect
(How to stop following)
m (Move page script moved page API FollowUnit to WoW:API FollowUnit without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
FollowUnit("[[API_TYPE_UnitId|UnitID]]")<br><br>
{{wowapi}}
Can only follow allies


Q: Is there a way to stop following from a script? Before patch 1.6 you could issue a movement command to stop following, but that is no longer an option.
Start following an allied unit
  FollowUnit("[[API_TYPE_UnitId|unit]]")


A: Try this:
== Arguments ==
/script MoveForwardStart(0)
:;unit: String - the [[API_TYPE_UnitId|UnitID]] to follow, e.g. "target", "party1", "raid1", etc..
/script MoveForwardStop(0)


Which starts you moving (thus breaking the follow), and then immediately stops (Which means you stay in one place).
== Details ==


[[Category:API Functions|FollowUnit]]
* To stop following someone: <code>( FollowUnit("player") )</code>
[[Category:API Movement Functions|FollowUnit]]
** <s>It is '''not possible''' to ''stop'' following someone from a script. The player needs to take action (move, jump, sit, whatever). See the [[Talk: API FollowUnit|{{discussiontab}} page]].</s>
[[Category:API Unit Functions|FollowUnit]]
 
* For historical reference, see also [[API FollowByName|FollowByName]](), which has been removed from the API.
Anonymous user