Files
apollo/game/plugin/entity/following/src/following.plugin.kts
T
2017-09-24 22:35:07 +01:00

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()
}