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 Error... again
Imevil23 Offline
Member

Posts: 83
Threads: 23
Joined: Jan 2012
Reputation: 0
#1
Script Error... again

Hello. I am in need of some help again. So everything was going great and my scripting skills are getting better, but there's this one issue I have never seen before. So the way I test my map is to actually go INTO amnesia and play it. Now as I go through the level door, an error pops up saying that it couldn't load the script file because there were no matching signatures for "AddEntityCallbackFunc(string yadda yadda)" (It didn't actually say "yadda yadda") WHAT DOES THIS MEAN AND HOW CAN I RESOLVE IT?? Huh

(This post was last modified: 02-11-2012, 04:30 AM by Imevil23.)
02-11-2012, 03:47 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Script Error... again

It means you have not put the right callback. Post your script.

02-11-2012, 03:50 AM
Find
Imevil23 Offline
Member

Posts: 83
Threads: 23
Joined: Jan 2012
Reputation: 0
#3
RE: Script Error... again

(02-11-2012, 03:50 AM)flamez3 Wrote: It means you have not put the right callback. Post your script.
All right


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCallbackFunc("key_laboratory_1", "monsterspawn");
}

void monsterspawn(string &in asEntity, string &in type)
{
SetEntityActive("monster_1", true);
ShowEnemyPlayerPosition("monster_1");
}





I only posted what the error said was wrong.


02-11-2012, 03:56 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Script Error... again

Do you want it to happen when you go through a script area, or when you pick something up?

02-11-2012, 04:08 AM
Find
Imevil23 Offline
Member

Posts: 83
Threads: 23
Joined: Jan 2012
Reputation: 0
#5
RE: Script Error... again

Pick something up

02-11-2012, 04:09 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#6
RE: Script Error... again

SetEntityCallbackFunc("
key_laboratory_1 ", "
monsterspawn" );


void monsterspawn(string &in asEntity, string &in type)
{
SetEntityActive("monster_1", true);
ShowEnemyPlayerPosition("monster_1");
}

02-11-2012, 04:14 AM
Find
Imevil23 Offline
Member

Posts: 83
Threads: 23
Joined: Jan 2012
Reputation: 0
#7
RE: Script Error... again

Ohhh, SETentitycallback not Add. ok got it


02-11-2012, 04:20 AM
Find




Users browsing this thread: 1 Guest(s)