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
I need some Help. HARDCORE SCRIPT :P
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#13
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 03:11 AM)xtron Wrote: oh ok

Add this instead then:
void OnStart()
{
AddEntityCollideCallback("Player", "scriptname", "functionname", true, 1);
}

void functionname(string &in asParent, string &in asChild, int alState)
{
FadeOut(0);
AddTimer("", 1.5, "TimerName");
PlaySoundAtEntity("", "guardian_activated.snt", "Player", 0.5f, false);
SetPlayerCrouching(true);
}

void TimerName(string &in asTimer)
{
TeleportPlayer("StartPosName");
AddTimer("", 0.0f, "TimerName2");
FadeIn(1.0f);
}

void TimerName2(string &in asTimer)
{
FadeRadialBlurTo(15.0f, 0.5f);
StartScreenShake(0.3f, 0.5f, 0.5f, 0.5f);
AddTimer("", 1.6f, "TimerName3");
GiveSanityDamage(5.0f, true);
PlaySoundAtEntity("", "insanity_imageflash01.snt", "Player", 0.5f, false);
PlaySoundAtEntity("", "water_lurker_hunt.snt", "Player", 0.5f, false);
}

void TimerName3(string &in asTimer)
{
StartScreenShake(0.0f, 0.0f, 0.0f, 0.0f);
FadeRadialBlurTo(0.0f, 0.5f);
SetPlayerCrouching(false);
}


EDIT: You can change the durration of the screen effects by changing the AddTimer("", 1.6f, "TimerName3"); To how many secs you want the screen effects to last.

Thank you! But it's still not the way I want it... It does the effects and all but not the beginning. like the BOOM and then shit hits the fan, it just Instantly turns black without any BOOM sound.

Any fix?
07-19-2011, 03:32 AM
Find


Messages In This Thread
RE: I need some Help. HARDCORE SCRIPT :P - by Angerpull - 07-19-2011, 03:32 AM



Users browsing this thread: 1 Guest(s)