Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [SOLVED] Is it possible ?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Is it possible ?

Yeah, it's pretty possible:

Add two "AddEntityCollideCallback". One should look like this:

AddEntityCollideCallback("Player", "InsArea", "FuckItUp", true, 1);
AddEntityCollideCallback("Player", "InsArea", "ToNormality", true, -1);

There's one thing that I need to know tho: will the player be able to get that event as many times as it wishes?

Then:

void FuckItUp (string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(float afSanity);
SetPlayerHealth(float afHealth);
PlaySoundAtEntity("WhateverSound", "Sound.snt","Player", 0, false);

FadeImageTrailTo(float afAmount, float afSpeed);
FadeRadialBlurTo(float afSize, float afSpeed);
FadePlayerFOVMulTo(float afX, float afSpeed);
FadePlayerAspectMulTo(float afX, float afSpeed);
}

void ToNormality (string &in...)
{
ChangePlayerStateToNormal();
}

That should be it. There are more ways to customize it, so if this isn't all you need just tell us Smile

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
09-21-2014, 01:56 PM
Find


Messages In This Thread
[SOLVED] Is it possible ? - by Straxedix - 09-21-2014, 01:33 PM
RE: Is it possible ? - by The chaser - 09-21-2014, 01:56 PM
RE: Is it possible ? - by Straxedix - 09-21-2014, 02:10 PM
RE: Is it possible ? - by Radical Batz - 09-21-2014, 02:16 PM
RE: Is it possible ? - by Neelke - 09-21-2014, 02:15 PM
RE: Is it possible ? - by Straxedix - 09-21-2014, 02:21 PM
RE: Is it possible ? - by Radical Batz - 09-21-2014, 02:25 PM
RE: Is it possible ? - by Straxedix - 09-21-2014, 02:27 PM
RE: Is it possible ? - by Radical Batz - 09-21-2014, 02:31 PM
RE: Is it possible ? - by Straxedix - 09-21-2014, 02:33 PM
RE: Is it possible ? - by Neelke - 09-21-2014, 02:40 PM
RE: Is it possible ? - by Straxedix - 09-21-2014, 06:26 PM
RE: Is it possible ? - by FlawlessHappiness - 09-21-2014, 06:53 PM
RE: Is it possible ? - by Straxedix - 09-21-2014, 07:03 PM
RE: [SOLVED] Is it possible ? - by The chaser - 09-21-2014, 08:39 PM



Users browsing this thread: 2 Guest(s)