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 Not all commands work in a function (EffectVoices)
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#1
Not all commands work in a function (EffectVoices)

So I'm trying to do some effects (radial blur and sepia) inbetween a series of effect voices. The problem is they don't work. The function (ContinueDialogue1) is called for sure, since the dialogue continues, but for some reason the effects put in the same func don't work. They work if I put them in the beggining (Dialogue2).

Any ideas ?

PHP Code: (Select All)
void Dialogue2(string &in asEntity)
{
    
AddEffectVoice("Academy_Speech_1""""Dialogues""Academy_Speech_1"false"Player"0.0f25.0f);
    
PlayMusic("02_thegreatunderground.ogg"false1.0f0.4f2false);
    
AddEffectVoice("Academy_Speech_2""""Dialogues""Academy_Speech_2"false"Player"0.0f25.0f);
    
AddEffectVoice("Academy_Speech_3""""Dialogues""Academy_Speech_3"false"Player"0.0f25.0f);
    
AddEffectVoice("Academy_Speech_4""""Dialogues""Academy_Speech_4"false"Player"0.0f25.0f);
    
AddEffectVoice("Academy_Speech_5""""Dialogues""Academy_Speech_5"false"Player"0.0f25.0f);
    
SetEffectVoiceOverCallback("ContinueDialogue1");
}
void ContinueDialogue1()
{
    
FadeRadialBlurTo(0.05f0.1f);
    
FadeSepiaColorTo(1.0f0.5f);
    
ContinueDialogue();
}
void ContinueDialogue()
{
    
AddEffectVoice("Academy_Speech_6""""Dialogues""Academy_Speech_6"false"Player"0.0f25.0f);
///and so on...


07-30-2016, 09:19 PM
Find


Messages In This Thread
Not all commands work in a function (EffectVoices) - by Darkfire - 07-30-2016, 09:19 PM



Users browsing this thread: 1 Guest(s)