Molang PokémonEntity Functions
Can also use entity and pokémon functions. Type is ObjectValue<PokemonEntity>.
| Name | Description | Usage |
|---|---|---|
in_battle(): Double |
Returns 1.0 if the Pokémon is in battle, otherwise returns 0.0.
|
v.pokemon_entity.in_battle() |
is_moving(): Double |
Returns 1.0 if the Pokémon is moving otherwise returns 0.0.
|
v.pokemon_entity.is_moving() |
is_flying(): Double |
Returns 1.0 if the Pokémon is in flying, otherwise returns 0.0.
|
v.pokemon_entity.is_flying() |
has_aspect(aspect: String): Double |
Returns 1.0 if the Pokémon has the aspect, otherwise returns 0.0.
|
v.pokemon_entity.has_aspect('alolan') |
is_pokemon(): Double |
Returns 1.0.
|
v.pokemon_entity.is_pokemon() |