Frictional Games Forum (read-only)

Full Version: Can't stop shake and blur.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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) )
No the medecine is a item to pick up Wink
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 :-)