Compagnon
hasControl
Vérifie si le joueur contrôle actuellement le compagnon.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Vérifie si le joueur contrôle actuellement le compagnon.
companion:hasControl()
| Type | Description |
|---|---|
boolean | true si le joueur contrôle le compagnon, false si l’IA du compagnon est active. |
if companion:hasControl() then
global:printMessage("Le joueur contrôle le compagnon")
end