◆Cobblemon Wiki

MoLang

Molang PokémonEntity Functions

entity 및 pokémon 함수도 사용할 수 있습니다. 타입은 ObjectValue<PokemonEntity>입니다.

NameDescriptionUsage
in_battle(): Double1.0을 반환합니다: the 포켓몬 is in 배틀, 그렇지 않으면 0.0을 반환합니다.v.pokemon_entity.in_battle()
is_moving(): Double1.0을 반환합니다: the 포켓몬 is moving 그렇지 않으면 0.0을 반환합니다.v.pokemon_entity.is_moving()
is_flying(): Double1.0을 반환합니다: the 포켓몬 is in flying, 그렇지 않으면 0.0을 반환합니다.v.pokemon_entity.is_flying()
has_aspect(aspect: String): Double1.0을 반환합니다: the 포켓몬 has the aspect, 그렇지 않으면 0.0을 반환합니다.v.pokemon_entity.has_aspect('alolan')
is_pokemon(): Double1.0을 반환합니다.v.pokemon_entity.is_pokemon()