Please enable JavaScript.
Coggle requires JavaScript to display documents.
InteractionSystem (Interacting (Yes (Check if we satisfy the "…
InteractionSystem
Interacting
Yes
Check if we satisfy the "EXIT" requirements of the interaction
No
Detect interactable object
Check if we satisfy the "ENTER" requirement
Types
Base
In use
OnEnter
OnExit
CarryPlayer
Exit requirements
Are we targeting a bed?
No
Put carried player on the floor
Yes
Check if bed is occupied
Detach the player from us and make them interact with the bed
Enter requirements
Target must not already be carried
Target must be marked as "DOWNED"
Bed
Exit requirements
Health must equal or above 30%
We have to be using it
Enter requirements
Can't already be in use