Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const string EMBED_sound1 = "test1.ogg";
- class script {
- scene@ g;
- script() {
- @g = get_scene();
- }
- void build_sounds(message@ msg) {
- msg.set_string("test1", "sound1");
- msg.set_int("test1|loop", 44100 * 2); // 2 seconds in
- }
- void on_level_start() {
- g.play_script_stream("test1", 1, 0, 0, true, 1.0);
- }
- }
Add Comment
Please, Sign In to add comment