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
#10
RE: I need some Help. HARDCORE SCRIPT :P

(07-19-2011, 02:46 AM)Tanshaydar Wrote:
(07-19-2011, 02:18 AM)Angerpull Wrote: I just did... Made no effing sense in my eyes. I usually see the

AddCollideCallBack whatever and a OnStart function at the top. You guys don't have it. It's a script here, and the function is... Somewhere!

I tried copying the Function of the script over to mine and set a point where it would be activated, no luck my duck I still got plucked...... the game didn't want to, and nothing happened.

If a working script could be provided HERE without me going on a adventure through your script files, that would be awesome.

Well I highly doubt anyone will do this and take time for it, but I'll wait... if I get no help, then I just scrap my map and throw it away.

If you know how to use a Collide Callback, then you can search for the function's name since it's already stated in the Callback function. Open the map, you can search for area name. It's really easy, just takes a little clicking time.

And instead of waiting and wanting people to write code for you, trying to understand the script will help you in a long term.

PS. They are not my script files, I'm not a Frictional Games employee.

Okay I found it.

Spoiler below!

OnStart blah blah
{
AddEntityCollideCallback("Player","TeleportToDarkSideArea", "CollideTeleportToDarkSide", true, 0);
}


void CollideTeleportToDarkSide(string &in asParent, string &in asChild, int alState)
{
FadeOut(0.3);

AddTimer("scare", 0.3f, "TimerPlayerReact");
AddTimer("breath", 2.0f, "TimerPlayerReact");
AddTimer("breathl", 4.0f, "TimerPlayerReact");
AddTimer("breathl", 6.0f, "TimerPlayerReact");

AddTimer("TeleportHowl", 0.5f, "TimerTeleportHowl");
AddTimer("TeleportDone", 3.5f, "TimerTelportDone");

PlaySoundAtEntity("stomp","scare_wall_stomp","Player", 0, false);
PlaySoundAtEntity("darkamb","07_amb_breath","Player", 5, true);
PlaySoundAtEntity("wateramb", "ambience_water_no3d.snt", "sound_idle_1", 5, true);

FadePlayerFOVMulTo(4.0f, 4.0f);
SetRadialBlurStartDist(0.1f);
FadeRadialBlurTo(1.0f, 5.0f);

StartEffectFlash(0.2, 0.1,0.3);

FadeGlobalSoundVolume(0, 0.3);
StopMusic(0.3f, 0);
StartScreenShake(0.1, 4.7, 0.05, 0.5);

FadePlayerFOVMulTo(0.5, 3);
}


So what do I do to remove the teleport? I am tired, and can't edit worth oklahoma.
07-19-2011, 03:03 AM
Find


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



Users browsing this thread: 1 Guest(s)