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


Messages In This Thread
RE: Script problem - No matching signatures [Solved] - by Evulmeh - 02-06-2011, 02:40 PM



Users browsing this thread: 1 Guest(s)