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 Script problem
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Script problem

Hello I have a problem. My script doesn't work.

PHP Code: (Select All)
void OnEnter ()
{

AddTimer("Random"RandFloat(2.0f,4.0f), "TimerRandom");
}

void TimerRandom(string&in asTimer)
{
int iRandoms RandFloat(1,7);
    if (
iRandoms 6){
    
    
SetPlayerActive(false); //Checks whether this part works
    
    
SetPlayerRunSpeedMul(RandFloat(0.6f,0.8f));
    
SetPlayerMoveSpeedMul(RandFloat(0.8f,0.9f));
    
FadePlayerFOVMulTo(RandFloat(1.1f,1.3f), 3);
    
FadeImageTrailTo(RandFloat(0.3f0.6f),3);
    
AddTimer("RandomLoop"RandFloat(5.0f,7.0f), "TimerRandom");
    
AddTimer("fadein"5"fadeintimer");
    
    }
    
    else if(
iRandoms == or iRandoms == 5)
    {
    
StartEffectFlash(115);//Checks whether this part works
    
    
SetPlayerRunSpeedMul(0.65f);
    
SetPlayerMoveSpeedMul(0.7f);
    
FadePlayerFOVMulTo(13);
    
FadeImageTrailTo(RandFloat(0.8f,1.0f), RandFloat(3.0f,5.0f));
    
PlaySoundAtEntity("breath_slow""react_breath_slow.snt""Player"RandFloat(0.8f,1.0f), false);
    
    
AddTimer("RandomLoop"RandFloat(4.0f,6.0f), "TimerRandom");
    }
    


This part of my script and I don't know why. Can anyone help me?
11-02-2012, 08:50 PM
Find


Messages In This Thread
Script problem - by ooadrianoo - 11-02-2012, 08:50 PM
RE: Script problem - by FlawlessHappiness - 11-02-2012, 09:00 PM
RE: Script problem - by ooadrianoo - 11-02-2012, 09:08 PM
RE: Script problem - by Your Computer - 11-02-2012, 09:13 PM
RE: Script problem - by ooadrianoo - 11-02-2012, 09:24 PM
RE: Script problem - by Your Computer - 11-02-2012, 09:34 PM
RE: Script problem - by ZodiaC - 11-02-2012, 09:39 PM
RE: Script problem - by ooadrianoo - 11-02-2012, 09:51 PM
RE: Script problem - by ZodiaC - 11-02-2012, 09:53 PM
RE: Script problem - by ooadrianoo - 11-02-2012, 09:36 PM



Users browsing this thread: 1 Guest(s)