Looks in the sequence data list to find the time at which the first occurrence of a specified event name is called.

get_time_of_first_event(sequence_data, event_type)

Arguments

sequence_data

The sequence data list (i.e. sequence0_T00X.json parsed to a list).

event_type

A vector containing the names event types. Should be one of "Wait", "Event Call", "Animate Behaviour", "Move Towards, "Rotate Towards" "Head Look". It can also be "VerbaliseClip" or "Attack", a specific animation of type "Animate Behaviour". The time of the first detected event is returned.

Value

A numeric value of the time (in Unity time, seconds since start-up) of the event. NA if none found.