How to implement chain of time-based actions (like coroutine).

  • February 2, 2018 at 07:15 #22724
    wei
    Participant

    I know Apex AI support composite actions.

    But what I need is a chained of time-based actions.

    For example, Action A takes 1 seconds, Action B takes 2 seconds, Action C takes 3 seconds.

    So the sequence of execution is like this:

    A.Execute()->Wait(1 seconds)->B.Execute()->Wait(2 seconds)->C.Execute()

    Is there any directed way to implement such requirements? Thanks.

    February 2, 2018 at 12:48 #22729
    Geminior
    Keymaster

    There is no such functionality built-in.
    Usually you reevaluate the AI since circumstances change, so committing to a whole chain of actions can be a problem.
    However it the use case calls for it, then you can certainly implement it, just create your own chain of event and start it from an action.
    You can than also interrupt it from another action, should you need to.

You must be logged in to reply to this topic.

Topic Tags