Knusper.
Member
Posts: 58
Threads: 7
Joined: Feb 2013
Reputation:
2
|
RE: check if active/ string to int/ etc.
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???
No one knows, how "I" goes.
|
|
03-26-2013, 09:46 PM |
|
Adrianis
Senior Member
Posts: 620
Threads: 6
Joined: Feb 2012
Reputation:
27
|
RE: Script Help
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?
|
|
03-27-2013, 02:03 PM |
|
Knusper.
Member
Posts: 58
Threads: 7
Joined: Feb 2013
Reputation:
2
|
RE: Script Help
No one knows, how "I" goes.
|
|
03-27-2013, 02:21 PM |
|
No Author
Posting Freak
Posts: 962
Threads: 10
Joined: Jun 2012
Reputation:
13
|
RE: Script Help
I think it's impossible to do that
|
|
03-27-2013, 02:24 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Script Help
(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.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-27-2013, 03:04 PM |
|
Knusper.
Member
Posts: 58
Threads: 7
Joined: Feb 2013
Reputation:
2
|
RE: Script Help
hm, i will see what is possible.
Here the next problem :
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?
No one knows, how "I" goes.
|
|
03-28-2013, 03:01 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Script Help
Is it named "Slender_" in the Level Editor?
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-28-2013, 03:07 PM |
|
Knusper.
Member
Posts: 58
Threads: 7
Joined: Feb 2013
Reputation:
2
|
RE: Script Help
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:
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");
}
}
No one knows, how "I" goes.
(This post was last modified: 03-28-2013, 03:15 PM by Knusper..)
|
|
03-28-2013, 03:15 PM |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
RE: Script Help
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.
"Veni, vidi, vici."
"I came, I saw, I conquered."
|
|
03-28-2013, 03:21 PM |
|
Knusper.
Member
Posts: 58
Threads: 7
Joined: Feb 2013
Reputation:
2
|
RE: Script Help
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)
No one knows, how "I" goes.
|
|
03-28-2013, 04:56 PM |
|
|