The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Triggering "stopmusic"
bestia455 Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2015
Reputation: 0
#1
Triggering "stopmusic"

I would like to use a script_area to trigger one song to start, AND another song to end.

I want to:

void OnEnter()
{
    PlayMusic ("Edgar.ogg", true, 0.9, 1.0, 1, true);
}

and

{
    PlaySoundAtEntity("sound", "Tunnels.snt", "Tunnels", 0.0, true);
}

then STOP "Edgar.ogg" from playing.


I am very new to this scripting stuff, so please forgive me if I completely overlooked the correct script on the wiki.
(This post was last modified: 05-25-2015, 04:32 AM by bestia455.)
05-25-2015, 04:31 AM
Find


Messages In This Thread
Triggering "stopmusic" - by bestia455 - 05-25-2015, 04:31 AM
RE: Triggering "stopmusic" - by Mudbill - 05-25-2015, 05:34 AM
RE: Triggering "stopmusic" - by bestia455 - 05-25-2015, 03:21 PM
RE: Triggering "stopmusic" - by Slanderous - 05-25-2015, 06:33 PM
RE: Triggering "stopmusic" - by bestia455 - 05-25-2015, 08:12 PM
RE: Triggering "stopmusic" - by Slanderous - 05-25-2015, 09:25 PM
RE: Triggering "stopmusic" - by Mudbill - 05-26-2015, 01:16 AM
RE: Triggering "stopmusic" - by Daemian - 05-25-2015, 09:42 PM
RE: Triggering "stopmusic" - by Slanderous - 05-25-2015, 11:13 PM



Users browsing this thread: 1 Guest(s)