See Studio for more information on how to use scenarios and app triggers.
App Triggers
You can invoke Virt-A-Mate triggers from stages and scenarios.
To invoke an action trigger:
import { chat } from "@voxta";
export function trigger(e) {
// Play a Timeline animation on the Person atom
chat.appTrigger(
'Action',
// The atom
'Person',
// The storable
'plugin#2_VamTimeline.AtomPlugin',
// The action name
`Play ${name}`
);
}
To invoke a storable param:
import { chat } from "@voxta";
export function trigger(e) {
// Set the Alpha value of the Mat storable on the Cube atom
chat.appTrigger(
// Can either be String, StringChooser, Bool, Float or Color
'Float',
// The atom
'Cube',
// The storable
'Mat',
// The param name
`Alpha`,
// The value
0.5
);
}