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 Help FATAL ERROR
Conrad285 Offline
Junior Member

Posts: 13
Threads: 4
Joined: Aug 2014
Reputation: 0
#1
FATAL ERROR

"could not load script file ... main (10,2) : ERR : No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)'

I've been able to fix it up until here but no matter what I try I'm obviously missing something from looking at it for too long.

and here's my script:

void OnStart()
{
AddUseItemCallback ("", "Mainfloor_key", "MainFloorLevel", "StoryTransition", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "corpse_male_1", true, 1);
PlayMusic ("02_amb_strange.ogg", true, 3, 3, 0, true);
}

void StoryTransition(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("MainFloorLevel", false, true);
PlaySoundAtEntity("", "unlock_door", "MainFloorLevel", 0, false);
RemoveItem("Mainfloor_key");
}

void corpse_male_1 (string &in asParent, string &in asChild, int alState)

{
SetEntityActive("corpse_male_1", true);
AddPropForce("corpse_male_1", 0, 0, -10000, "world");
PlaySoundAtEntity ("", "24_iron_maiden.snt", "Player", 0, false);
}
void OnEnter()
{
}
void OnLeave()
{
}
08-12-2014, 07:47 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: FATAL ERROR

The Level Door is NOT a swing door, hence it uses different code Smile :
PHP Code: (Select All)
SetLevelDoorLocked("<name_of_your_door>"false); 

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 08-12-2014, 08:15 AM by Romulator.)
08-12-2014, 08:15 AM
Find
Conrad285 Offline
Junior Member

Posts: 13
Threads: 4
Joined: Aug 2014
Reputation: 0
#3
RE: FATAL ERROR

(08-12-2014, 08:15 AM)Romulat✪r (✿◠‿◠) Wrote: The Level Door is NOT a swing door, hence it uses different code Smile :
PHP Code: (Select All)
SetLevelDoorLocked("<name_of_your_door>"false); 

Thank you so much! Worked like a charm!
08-12-2014, 08:42 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: FATAL ERROR

No problem! Good luck with your story!

Discord: Romulator#0001
[Image: 3f6f01a904.png]
08-12-2014, 08:56 AM
Find




Users browsing this thread: 1 Guest(s)