Guest User

Untitled

a guest
Oct 21st, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. const string EMBED_sound1 = "test1.ogg";
  2.  
  3. class script {
  4. scene@ g;
  5.  
  6. script() {
  7. @g = get_scene();
  8. }
  9.  
  10. void build_sounds(message@ msg) {
  11. msg.set_string("test1", "sound1");
  12. msg.set_int("test1|loop", 44100 * 2); // 2 seconds in
  13. }
  14.  
  15. void on_level_start() {
  16. g.play_script_stream("test1", 1, 0, 0, true, 1.0);
  17. }
  18. }
Add Comment
Please, Sign In to add comment