TK_UpDownComponent - golden-coconut-studio/TikiAdventuresWiki GitHub Wiki

  • This component allows to mount on and get off a Tiki.

  • How to use it:

      0.- Add the component to a Tiki.
    
      1.- Call "CheckTikiWithTotemOverlap" function from the CapsuleTotemCollider "OnComponentBeginOverlap" event, passing as arguments OtherActor and the boolean variable "OverlapExit" set to false.
    
      2.- Call from an InputEvent the function UpDown, which internally will call Up or Down functions depending on the situation.
    
      3.- Call "CheckTikiWithTotemOverlap" function from the CapsuleTotemCollider "OnComponentEndOverlap" event, passing as arguments OtherActor and the boolean variable "OverlapExit" set to true.
    
  • Conditions to mount on another Tiki:

      - The actor we want to mount on HAS to be ATK_Player (Tiki).
    
      - Not being falling (!CharacterMovement->isFalling).
    
      - The actor we want to mount on must not be falling (!CharacterMovement->isFalling).
    
      - At least one Tiki has to be nearby (TikisOnOverlap.Num() > 0).
    
      - Not being mounted on another Tiki.
    
      - Not having any Tiki above (otherwise it will call the upper Tiki recursively).
    
      - Not having any Enemy/Grabbable object above.
    
  • Conditions to get off

      - Being mounted on another Tiki.
    
      - Not being falling (!CharacterMovement->isFalling).
    
      - Not having any Tiki above.
    
  • Conditions to undo the Totem:

      - Having at least one Tiki above.
    
      - Not being falling (!CharacterMovement->isFalling).
    
  • When the tiki are in totem and press the button for go down, there is a forward force that impulse the tiki to the front.