Is there a way to set the instigator when playing a cinematic_sequence_device from Verse?

cinematic_sequence_device.Play() doesn’t take any parameters, but is there another way to tell the cinematic_sequence_device who triggered it?

I’m trying to make use of setting the Visibility to Instigator Only.

How can you play a sequence for only the person who clicked a UI element?

There is a overload on the Play function, meaning it can be called without any parameters and with the Agent included. In your case you can say:

OnBegin<override>()<suspends>:void=
    YourUIElement.OnClick.Subscribe(PlaySequenceForInstigatorOnly)

PlaySequenceForInstigatorOnly(Message : widget_message) : void =
    cinematic_sequence_device.Play(Message.Player)
2 Likes