Displaying if AI is Unconscious or Dead

From FleshWorks

Jump to: navigation, search

by ascottk


What I miss about the original games was the display that told whether or not the body you carried was dead or unconscious so I made two scripts & two text files:

  • Text AI_CorpseDisplay.sch & AI_UnconsciousDisplay.sch - Each file with "Corpse" or "Unconscious"
  • Scripts - AI_CorpseState & AI_UnconsciousState


AI_CorpseState

Image:Condition_icon.png CONDITIONS

Image:AND_icon.png Logic AND operator
Image:Condition_icon.png When I am frobbed by player
Image:Condition_icon.png While the AI is in the behavior state [STATE_DEAD]

Image:action_icon.png ACTIONS

Image:action_icon.png Flash non-blocking, formatted text from file [AI_CorpseDisplay] and fade out after [2.00]
Image:action_icon.png Reset script conditions and actions


AI_UnconsciousState

Image:Condition_icon.png CONDITIONS

Image:AND_icon.png Logic AND operator
Image:Condition_icon.png When I am frobbed by player
Image:Condition_icon.png While the AI is in the behavior state [STATE_UNCONSCIOUS]

Image:action_icon.png ACTIONS

Image:action_icon.png Flash non-blocking, formatted text from file [AI_UnconsciousDisplay] and fade out after [2.00]
Image:action_icon.png Reset script conditions and actions


Attach the scripts to Pawn>AIPawn>T3AIPawnHuman

Now you'll know if the body you picked up is either dead or unconscious.



Back to Mission Design: Gameplay Tutorials Page

Back to Mission Design Tutorials Page

Back to Main Tutorials Page

Personal tools