⚔️ fight_GetChallengeTarget(challengeId)

Récupère les informations de cible d'un challenge spécifique.

fight_GetChallengeTarget(challengeId)

Fight

Récupère les informations de cible d'un challenge spécifique.

Paramètres

Paramètre Type Description
challengeId int L'ID du challenge

Valeur de retour

table - Dictionnaire avec les informations de cible (targetId, targetCell, state, challengeId, targets, targetCount)

Exemple

function example_fightgetchallengetarget() -- Obtenir les informations de cible d'un challenge local challengeId = 123 local targetInfo = fight_GetChallengeTarget(challengeId) if targetInfo then local targetCell = fight_GetProperty(targetInfo, "targetCell") local targetCount = fight_GetProperty(targetInfo, "targetCount") fight_SendLogs("Challenge " .. challengeId .. " - Cible: cellule " .. targetCell .. " (" .. targetCount .. " cibles)", "Cyan") end end -- Appeler la fonction example_fightgetchallengetarget()