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 problem - No matching signatures
Evulmeh Offline
Junior Member

Posts: 3
Threads: 1
Joined: Feb 2011
Reputation: 0
#1
Script problem - No matching signatures

Hey guys, just started working on some scripting, been trying to get this thing to run for 3 hours now =/

Short backstory: The room has candles (as in a ritual) and need to be lit. Once lit I want the ritual to be completed, and the door to open. So I made a callback script (using just 1 candle for now) stating when the lamp is lit, the door will unlock.

void OnStart()
{
SetLampLitChangeCallback("candle_floor_1","Lamp_4_lit");
}

void Lamp_4_lit(bool abActive)
{
SetSwingDoorLocked("mansion_1", false, true);
}

Unfortunately when I run the level it comes back with "No matching signatures for SetLampLitChangeCallback"

Did I enter all the parameters correctly? Or did they remove this callback from the game?

Thanks for all that can help! Smile
02-06-2011, 11:55 AM
Find
adamhun Offline
Junior Member

Posts: 34
Threads: 4
Joined: Dec 2010
Reputation: 0
#2
RE: Script problem - No matching signatures

there is no such command as SetLampLitChangeCallback

-Retired-
02-06-2011, 12:14 PM
Find
Evulmeh Offline
Junior Member

Posts: 3
Threads: 1
Joined: Feb 2011
Reputation: 0
#3
RE: Script problem - No matching signatures

(02-06-2011, 12:14 PM)adamhun Wrote: there is no such command as SetLampLitChangeCallback

Strange, it seems to be in the script reference document found here

But if this code is perhaps removed, is there another way to trigger a door unlock at a lamp lit?
(This post was last modified: 02-06-2011, 12:20 PM by Evulmeh.)
02-06-2011, 12:20 PM
Find
adamhun Offline
Junior Member

Posts: 34
Threads: 4
Joined: Dec 2010
Reputation: 0
#4
RE: Script problem - No matching signatures

"Almost all scripts are used in Penumbra/Penumbra: Overture" so yeah, Frictional removed it.
As for the other way, you could try to make a callback func on the lamp, and maybe use OnIgnite ... but I'm not sure on this one

-Retired-
02-06-2011, 12:35 PM
Find
Evulmeh Offline
Junior Member

Posts: 3
Threads: 1
Joined: Feb 2011
Reputation: 0
#5
RE: Script problem - No matching signatures [Solved]

(02-06-2011, 12:35 PM)adamhun Wrote: "Almost all scripts are used in Penumbra/Penumbra: Overture" so yeah, Frictional removed it.
As for the other way, you could try to make a callback func on the lamp, and maybe use OnIgnite ... but I'm not sure on this one

Cheers, I solved it so for those of you who searched this here's what I did:

I made a Callbackfunction in the level editor on the candle I wanted.
Then, in my script I simply made a callback to the input I gave in the editor and left the type blank so the script would fill this in itself.

Then I said that if the type equals OnIgnite, it would execute a script unlocking the door.

Heres the code:
void candleignite(string &in EntityName, string &in Type)
{
    if(Type == "OnIgnite")
    {
       [Enter the things you want done here]
     }
}
(This post was last modified: 02-06-2011, 02:40 PM by Evulmeh.)
02-06-2011, 02:40 PM
Find




Users browsing this thread: 1 Guest(s)