Frictional Games Forum (read-only)

Full Version: Script Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Ok. i will set this to a thread where i post my problems of this special map (I have lots...)
I hope thats ok.

So, now Maybe you know slender. My map will be like slender.
I am now searching for a way to get that "Flicker".
I hope you know what I mean.
Is there a way with screen effects or PS or anything???
Not sure what you mean, sorry, I know of Slender but never played/watched any of that stuff. Maybe if you link to a video that shows the kind of thing you mean?
I think it's impossible to do that
(03-27-2013, 02:24 PM)No Author Wrote: [ -> ]I think it's impossible to do that

It's possible, but hard (/////THAT'S WHAT SHE SAID.).
1. Make a custom decal
2. Change the directory in the (I DON'T KNOW WHAT IT IS) to your custom decal
3. Change settings.
4. ???
5. PROFIT
joking, not to be taken seriously. For the static thing, PM YourComputer.
hm, i will see what is possible.
Here the next problem Tongue :
Code:
void nomove(string &in asTimer)
{
    if(IsInArea == true)
    {
        int i;
        i = LastArea[1];
        PlaySoundAtEntity("", "Slender_tod.snt", "Player", 0, false);
        SetPlayerActive(false);
        StartPlayerLookAt("Slender_" + i, 1, 1.5, "Dead");
    }
}

void Dead(string &in asTimer)
{
    FadeOut(0.3);
    SetPlayerHealth(0);
    //Flicker + Sound
}

Here It works until startplayerlookat.
You are unable to move but then the cam isnt moving to look at slender.
What about this?
Is it named "Slender_" in the Level Editor?
Its named "Slender_5" for example. Or "Slender_2".
With
int i;
i = LastArea[1];
I find out the number of the slender.
Here is where i have lastarea declared:
Code:
string LastArea = "00";
void InArea(string &in asParent, string &in asChild, int alState)
{
    string areanumber1 = StringSub(asChild, 11, 2);
    int i;
    i = (areanumber1[0] -48) *10 + areanumber1[1] -48;       
    AddDebugMessage(Slender_active, false);
    if (Slender_active[i-1] == 1 + 48)
    {
        AddDebugMessage("InArea > if statement executing", false);
        IsInArea = true;
        LastArea = areanumber1;
        //////////////////PlaySoundAtEntity("", "SlenderFLICKER.snt", "Player", 0, false);
        AddTimer("mov", 2, "nomove");
    }
    
}
If you have multiple slenders, use an index sign like this.
StartPlayerLookAt("Slender_*" + i, 1, 1.5, "Dead");
It means anything that have the beginning Slender_ will be considered.
But you should only look at the slender in witch area you are.
So slender_1 is in area Scriptarea01.
thats why i wrote
int i;
i = LastArea[1];
StartPlayerLookAt("Slender_" + i, 1, 1.5, "Dead");

(here lastarea is the one you are in)
Pages: 1 2 3 4