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
Model Editor Help Interactive custom model
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Interactive custom model

What you could do it very simpel.
Open the lvleditor. add a small blockbox around\ontop the voice recorder.
Then go to the blockbox and go to the Entity TAB then
add a name on the connectionstatechangecallback ( right now add this PlayMusicBox ).
Here is the script you can use.
This is for turning it On pres again will turn OFF press again will turn On etc etc...
---
PHP Code: (Select All)
            /////StartupSoundFromVoiceRecorder/////
 
void PlayMusicBox(string &in asEntityint alState
{
if(
alState == 1)
{
PlaySoundAtEntity("StopMusicBoxNow""Gramaphoneattic.snt""ScriptArea_2"0.05ffalse);
}

if(
alState == -1)
{
StopSound("StopMusicBoxNow"3);
}

(This post was last modified: 07-10-2014, 06:35 PM by DnALANGE.)
07-10-2014, 06:24 PM
Find


Messages In This Thread
Interactive custom model - by goodcap - 07-10-2014, 06:18 PM
RE: Interactive custom model - by DnALANGE - 07-10-2014, 06:24 PM
RE: Interactive custom model - by goodcap - 07-10-2014, 06:27 PM
RE: Interactive custom model - by DnALANGE - 07-10-2014, 06:30 PM
RE: Interactive custom model - by goodcap - 07-10-2014, 06:44 PM
RE: Interactive custom model - by DnALANGE - 07-10-2014, 06:47 PM
RE: Interactive custom model - by goodcap - 07-10-2014, 06:50 PM



Users browsing this thread: 1 Guest(s)