Frictional Games Forum (read-only)

Full Version: InteractCallback problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey soory to ask againf or help.. I'm such a noob.. yeah but i started three days ago with teh editor so.. Big Grin

I have a key. when it's picked up i want something to happen.
This is my script for this so far:

Code:
SetEntityPlayerInteractCallback("cellarkey2", "fear1", true);

void fear1(string &in asParent, string &in asChild, int alState)
{
    SetLampLit("torch_static01_5", false, true);
    SetLampLit("torch_static01_6", false, true);
    SetLightVisible("PointLight_11", false);
    GiveSanityDamage(20.0f, true);
}

I hope someoen can help me^^
Try

SetEntityPlayerInteractCallback("cellarkey2", "fear1", true);

void fear1(string &in asEntity)
{
SetLampLit("torch_static01_5", false, true);
SetLampLit("torch_static01_6", false, true);
SetLightVisible("PointLight_11", false);
GiveSanityDamage(20.0f, true);
}
(01-08-2011, 01:24 PM)Russ Money Wrote: [ -> ]Try

SetEntityPlayerInteractCallback("cellarkey2", "fear1", true);

void fear1(string &in asEntity)
{
SetLampLit("torch_static01_5", false, true);
SetLampLit("torch_static01_6", false, true);
SetLightVisible("PointLight_11", false);
GiveSanityDamage(20.0f, true);
}

Thank you Smile it's working now Big Grin