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
Making an Introduction & more
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Making an Introduction & more

For the commentary, use
PHP Code: (Select All)
AddEffectVoice(stringasVoiceFilestringasEffectFilestringasTextCatstringasTextEntry,
bool abUsePositionstringasPosEntityfloat afMinDistancefloat afMaxDistance); 
asVoiceFile - the voice to play
asEffectFile - the effect to play
asTextCat - the category in the .lang file
asTextEntry - the text entry in the .lang file
abUsePosition - plays using 3D from the entity, or without 3D
asPosEntity - the entity at which the effect appears
afMinDistance - minimum distance to see the effect
afMaxDistance - maximum distance to see the effect

--------------------------------------------------------
For the fade out and player walk,
PHP Code: (Select All)
void OnStart()
{
PlrWalkFadeOut();
}

void PlrWalkFadeOut()
{
FadeOut(0);
FadeIn(0.5f);
AddTimer(""3.0f"PlrWalk");
}

void PlrWalk(string &in asTimer)
{
MovePlayerForward(0.7f); //Change 0.7f to how fast/long you want the player to walk
AddTimer(""0.6f"PlrWalkLoop");
}

void PlrWalkLoop(string &in asTimer)
{
AddTimer(""0.3f"PlrWalk");
AddTimer(""3.0f"FadeOut"); //Change 3.0f to how long you want the player to walk.
}

void FadeOut(string &in asTimer)
{
FadeOut(5.0f);
TeleportPlayer("PlayerStartArea_2"); //PlayerStartArea_2 is where the Player will be transported to. It must be a PlayerStart.
FadeIn(5.0f);
AddTimer(""3.0f"FadeOutAgain"); //Change 3.0f to how long you want the Player to walk the second time.
}

void FadeOutAgain(string &in asTimer)
{
FadeOut(3.0f);
//Add the AddVoiceEffect thing on the first one.
FadeIn(2.0f);
RemoveTimer("PlrWalk");
RemoveTimer("PlrWalkLoop");

----------------------------------------------
You cannot import then export it without making any changes in Audacity. You have to use a music extension converter.
----
And most perimeters require an .snt file for each .ogg.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 04-22-2013, 08:55 AM by PutraenusAlivius.)
04-22-2013, 08:40 AM
Find


Messages In This Thread
Making an Introduction & more - by T122002 - 04-22-2013, 03:51 AM
RE: Making an Introduction & more - by PutraenusAlivius - 04-22-2013, 08:40 AM
RE: Making an Introduction & more - by T122002 - 04-22-2013, 05:05 PM
RE: Making an Introduction & more - by Romulator - 04-23-2013, 07:36 AM
RE: Making an Introduction & more - by Romulator - 04-22-2013, 08:48 AM



Users browsing this thread: 1 Guest(s)