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
InteractCallback problem
pawsUp1703 Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jan 2011
Reputation: 0
#1
InteractCallback problem

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:

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^^

It doesn't matter if you love him, or capital H.I.M.
Just put your Paws Up, 'cause you were Born This Way baby!
01-08-2011, 01:21 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: InteractCallback problem

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
Find
pawsUp1703 Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jan 2011
Reputation: 0
#3
RE: InteractCallback problem

(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

It doesn't matter if you love him, or capital H.I.M.
Just put your Paws Up, 'cause you were Born This Way baby!
01-08-2011, 01:41 PM
Find




Users browsing this thread: 2 Guest(s)