Passer au contenu principal

Documentation Index

Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt

Use this file to discover all available pages before exploring further.

Vérifie si le joueur contrôle actuellement le compagnon.

🎮 Méthode

companion:hasControl()

💎 Valeur de retour

TypeDescription
booleantrue si le joueur contrôle le compagnon, false si l’IA du compagnon est active.

💡 Exemple

if companion:hasControl() then
  global:printMessage("Le joueur contrôle le compagnon")
end