Les gardes portant des torches
Patrouilles et Navmesh
Comment montrer si un AI est inconscient
ou mort
Personnalisation d'AI – Exemple d'un Elément
de feu (Fire Elemental)
J'aime toujours savoir si la personne que Garrett porte est inconsciente ou morte, c'est ce qui manque dans les missions originales. J'ai fait 2 scripts et 2 fichiers-textes.
1. Créez deux fichiers pour le texte AI_CorpseDisplay.sch et AI_UnconsciousDisplay.sch : chaque fichier ayant pour texte respectivement "Cadavre" ou "Personne Inconsciente".
2. Créez le script AI_CorpseState.
(pour l'état "Cadavre")
CONDITIONS :
- When I am frobbed by player
- While the AI is in the behavior state [STATE_DEAD]
ACTIONS :
- Flash non-blocking, formatted text from file [AI_CorpseDisplay] and fade
out after [2.00]
- Reset script conditions and actions
3. Créez le script AI_UnconsciousState.
(pour l'état "Inconscient")
CONDITIONS :
- When I am frobbed by player
- While the AI is in the behavior state [STATE_UNCONSCIOUS]
ACTIONS :
- Flash non-blocking, formatted text from file [AI_UnconsciousDisplay] and
fade out after [2.00]
- Reset script conditions and actions
4. Attachez ces scripts à Pawn > AIPawn > T3AIPawnHuman. A présent, vous saurez si la personne que vous ramassez est inconsciente ou morte.
Tutoriels sur T3ed
t3ed.tutoriel.free.fr