Search Unity

Create playable that chooses randomly between two playable directors

Discussion in 'Timeline' started by TheAnosmic, Aug 25, 2019.

  1. TheAnosmic

    TheAnosmic

    Joined:
    Sep 9, 2015
    Posts:
    4
    When my character finish an "Action" (which contained in a timeline) I want him to play randomly one of a few possible "reactions".
    So I have an "Action" Timeline and few "Reaction" Timelines, and I want the Action Timeline to play one of them randomly when it finishes.
    I tried to create a playable asset that contained links to the Timelines but I couldn't link a Timeline from the scene to it.
    Is there another way to do it?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    You could try using a monobehaviour with a method that randomly picks one of other playable directors and plays it. A timeline is an asset, and needs a playable director to play it. Then use a Signal to trigger the method from your Action timeline.