◆Cobblemon Wiki

MoLang

Molang BattleActor Functions

Type is ObjectValue<BattleActor>.

NameDescriptionUsageMust be called on
is_npc(): Double1.0을 반환합니다: the actor is a NPC, 그렇지 않으면 0.0을 반환합니다.v.actor.is_npc()
is_player(): Double1.0을 반환합니다: the actor is a 플레이어, 그렇지 않으면 0.0을 반환합니다.v.actor.is_player()
is_wild(): Double1.0을 반환합니다: the actor is a 야생 포켓몬, 그렇지 않으면 0.0을 반환합니다.v.actor.is_wild()
npc(): ObjectValue<NPCBattleActor>ObjectValue<NPCBattleActor> 구조체를 반환합니다.v.actor.npc()NPCBattleActor
player(): ObjectValue<PlayerBattleActor>ObjectValue<PlayerBattleActor> 구조체를 반환합니다.v.actor.player()PlayerBattleActor