You've called 2 of the same function, but on the second one you've missed out one of the things that function requires, which is the call to another function.
AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
asParentName - internal name of main object asChildName - internal name of object that collides with main object (asterix (*) NOT supported!) asFunction - function to call abDeleteOnCollide - determines whether the callback after it was called alStates - 1 = only enter, -1 = only leave, 0 = both
That third parameter on the list tells the function AddEntityCollideCallback which function to call. Your first call to that function used "MonsterFunction", so when the 'parent' and 'child' collide, MonsterFunction is called.
The reason it says 'no matching signature' is because its talking about the 'signature' of the function you are calling, AddEntityCollideCallback requires all 5 parameters to be given a value, you did it the first time but not the second. There is no AddEntityCollideCallback function that takes only 4 parameters, so there is no matching signature to that function
(This post was last modified: 12-03-2012, 03:25 AM by Adrianis.)
now it says "(25:2) Unexpected End Of File", so now i have no idea how to get rid of this. also, i thank you for fixing and explaining the problem adrianis. and i had to add extra things in order for it to stop saying problem here and problem there.
(This post was last modified: 12-03-2012, 05:18 PM by Gamerlord08.)
I'm tired, so to sum it up:
-After OnStart you used a parentheses and a comma to end it
-The second AddEntityCollideCallback needs one more string argument to set the name of the function it will call
-The third AddEntityCollideCallback seems to be the same as the first, except with some really messed up part on the end.
didn't work bud, it's ether that doesn't work, or mine doesn't work, thinking mine, i have another custom story and i made a script, but he doesn't react to my script, AT ALL.
(12-05-2012, 04:01 PM)Gamerlord08 Wrote: didn't work bud, it's ether that doesn't work, or mine doesn't work, thinking mine, i have another custom story and i made a script, but he doesn't react to my script, AT ALL.
In case it doesn't work, post your script and tell us if it crashes Amnesia or just doesn't work. Those are two things I made once and that you could have done too:
-Make sure it's an .hps
-It must have the same name than the map
see if you can figure this out, i cannot put my finger on why it's saying this. also, it just doesn't work, amnesia works fine unless i try my custom story.
(This post was last modified: 12-07-2012, 08:52 PM by Gamerlord08.)
(12-07-2012, 08:51 PM)Gamerlord08 Wrote: it is a .hps file, i get the (25: 2) unexpected end of file error, here's what i'm using with the custom story, everything else checks out.
see if you can figure this out, i cannot put my finger on why it's saying this. also, it just doesn't work, amnesia works fine unless i try my custom story.