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
#6
RE: Making an Introduction & more

(04-22-2013, 05:05 PM)T122002 Wrote:
(04-22-2013, 08:40 AM)JustAnotherPlayer Wrote: 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.

Okay. The AddVoiceEffect seems much easier than I thought. The PlrWalkFadeOut, is that a function or just something random? XD I couldn't find it at the Engine Scripts Page. It seems that using the "MovePlayerForward" function would be very helpful in this, so can I use that just to make the player move? Or does that function require more, kind of like the AddEnemyPatrolNodes, the player would have to walk in a specific path. Well basically, just walk straight forward.
You can actually create your own functions and such -- meaning that you don't have to use the Engine Scripts page to make one. But you have to learn how to create one first. All you need to do is add PlayerStart areas where the player is transported.

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-23-2013, 05:56 AM
Find


Messages In This Thread
Making an Introduction & more - by T122002 - 04-22-2013, 03:51 AM
RE: Making an Introduction & more - by T122002 - 04-22-2013, 05:05 PM
RE: Making an Introduction & more - by PutraenusAlivius - 04-23-2013, 05:56 AM
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)