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 AddCombineCallback Error No Signiture
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#1
AddCombineCallback Error No Signiture

Hi I added 2 combine callbacks but when the game is loading it says no signiture. you first mix 2 chemical containers to make 1 then mix that with another and your done but it says No Matching Signuture Why?

==================================================================================

void attop(string &in asTimer)
{
FadeIn(2.0f);
CheckPoint ("checkpoint3", "bunkercheckpoint3", "", "", "");
AddCombineCallback("", "chemical_4", "chemical_5", mixonetwo, true); <---- Error No Matching Signiture
}

void mixonetwo(string &in asItemA, string &in asItemB)
{
GiveItem("chemical_nearly_finished", "chemical_container_full", "mixnearly", "chemical_container_full.tga", 1.0f);
AddCombineCallback("", "chemical_6", "chemical_nearly_finished", mixtwothree, true); < Error
}

void mixtwothree(string &in asItemA, string &in asItemB)
{
GiveItem("chemical_finished", "chemical_container_full", "mixdone", "chemical_container_full.tga", 1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
AddUseItemCallback("", "chemical_finished", "sewer_grate", "blowexit", true);
AddUseItemCallback("", "chemical_finished", "sewer_grate2", "blowexit", true);
}

void blowexit(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_finished");
StartEffectFlash(0.0f, 1.0f, 0.2f);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);
SetEntityActive("sewer_grate", false);
SetEntityActive("sewer_grate2", false);
AddEntityCollideCallback("Player", "endinggame", "credittimer", true, 1);
}

void credittimer(string &in asParent, string &in asChild, int alState)
{
FadeOut(3.0f);
AddTimer("goodbye", 3.5f, "cya");
}

void cya(string &in asTimer)
{
StopMusic(1.0f, 0);
StartCredits("Music_02", true, "halldoormessage", "endofgame", 0);
}

===================================================================================


This Darn House! , Four Doors, Youtube
04-10-2012, 06:54 AM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: AddCombineCallback Error No Signiture

mixonetwo and mixtwothree need to be in quotation marks.

04-10-2012, 07:26 AM
Find
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#3
RE: AddCombineCallback Error No Signiture

(04-10-2012, 07:26 AM)Obliviator27 Wrote: mixonetwo and mixtwothree need to be in quotation marks.
Game No Longer Crashes But It Won't Combine. Don't You Need To Create an Inventory.hps. but i don't know how to put in it


This Darn House! , Four Doors, Youtube
04-10-2012, 09:10 AM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#4
RE: AddCombineCallback Error No Signiture

Yes you need to create inventory.hps in your maps folder.To combine items there is a tutorial on the wiki(i suggested it Big Grin)but in that tutorial you combine the hammer and chipper.But its almost the same thing.Heres the link http://wiki.frictionalgames.com/hpl2/tut...iferorange

04-10-2012, 11:56 AM
Find




Users browsing this thread: 1 Guest(s)