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
Script Help Can't stop shake and blur.
z3akx Offline
Junior Member

Posts: 15
Threads: 4
Joined: Dec 2011
Reputation: 0
#1
Can't stop shake and blur.

Hi.

Well basicaly i want the player to walk through a spot and then the screen starts shaking and a blur.
The player then needs to "drink" a medecinepot (laudanum) to stop the shaking. And ofc i can't get it to work..

Well here is what i have to far.


void OnStart()
{
SetEntityPlayerInteractCallback("medecine", "medecinepot", true);
}


void medecinepot(string &in asEntity)
{
StartScreenShake(0, 0.0f, 0, 0.0f);
FadeRadialBlurTo(0, 0.0f);
RemoveItem("medecine");
}

Please help :-D
12-20-2011, 08:14 PM
Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#2
RE: Can't stop shake and blur.

Is the medicine in the player's inventory? use AddUseItemCallback instead.

(Then the callback syntax would be void medecinepot(string &in asItem, string &in asEntity) )

12-20-2011, 08:43 PM
Find
z3akx Offline
Junior Member

Posts: 15
Threads: 4
Joined: Dec 2011
Reputation: 0
#3
RE: Can't stop shake and blur.

No the medecine is a item to pick up Wink
12-20-2011, 08:56 PM
Find
z3akx Offline
Junior Member

Posts: 15
Threads: 4
Joined: Dec 2011
Reputation: 0
#4
RE: Can't stop shake and blur.

Okay i have it fixxed now.

I found out i just needed to add medecinepot on the medecine itself, in the CallBackFunc. Second tap..

But thanks for the help :-)
12-21-2011, 03:32 PM
Find




Users browsing this thread: 1 Guest(s)