mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
9 lines
338 B
Kotlin
9 lines
338 B
Kotlin
import org.apollo.game.plugin.entity.player_action.PlayerActionType
|
|
import org.apollo.plugin.entity.following.FollowAction
|
|
|
|
on_player_event { org.apollo.game.plugin.entity.player_action.PlayerActionEvent::class }
|
|
.where { action == PlayerActionType.FOLLOW }
|
|
.then {
|
|
FollowAction.start(it, target)
|
|
terminate()
|
|
} |