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


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#67
RE: how to make floor break when u go to a certain area

(07-04-2014, 01:24 PM)victorkim890(KimmyChimmy) Wrote: how to play music in a certain room and if u exit the room the music goes away. so each time u go into the room it plays the music

Encase the room with a script area called RoomMusicArea.
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""RoomMusicArea""MusicPlay"false0);
}

void MusicPlay(string &in asParentstring &in asChildint alState)
{
if (
alState == 1)
{
PlayMusic("MusicName.ogg"true10.1f2false);
}

else if (
alState == -1)
{
StopMusic(0.1f2);
}



"Veni, vidi, vici."
"I came, I saw, I conquered."
07-04-2014, 04:45 PM
Find


Messages In This Thread
RE: how to make floor break when u go to a certain area - by PutraenusAlivius - 07-04-2014, 04:45 PM



Users browsing this thread: 1 Guest(s)