AddEntityCollideCallBack("Player", "PlayerCollide", "MonsterFunction", true, 1);
Is your problem. It is has to be declared when something else happens or when you start the map. Change your code to this:
AddEntityCollideCallBack("Player", "PlayerCollide", "MonsterFunction", true, 1);
Is your problem. It is has to be declared when something else happens or when you start the map. Change your code to this:
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Badguy", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
Now that we are adding the callback when the map loads up, it should work fine
I copied and pasted it but i got an error saying, "main (6,6) :ERR : No matching signatures to 'AddEntityCollideCallBack(string@&, string@&, string@&, const bool, const uint)' "
(04-15-2013, 03:28 AM)X5KillerKlownzX Wrote:
(04-15-2013, 01:33 AM)ROMul8r Wrote: Where your issue is:
AddEntityCollideCallBack("Player", "PlayerCollide", "MonsterFunction", true, 1);
Is your problem. It is has to be declared when something else happens or when you start the map. Change your code to this:
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Badguy", true);
}
void OnEnter()
{
}
void OnLeave()
{
}
Now that we are adding the callback when the map loads up, it should work fine
I copied and pasted it but i got an error saying, "main (6,6) :ERR : No matching signatures to 'AddEntityCollideCallBack(string@&, string@&, string@&, const bool, const uint)' "
I mean (6,5)
(This post was last modified: 04-15-2013, 03:36 AM by X5KillerKlownzX.)
(04-15-2013, 03:53 AM)NaxEla Wrote: You'll need a lower case 'B'.
AddEntityCollideCallback
Thats it? that is the only problem? I feel so dumb that i missed that as well! I completely forgot about that! Thank you so much, You both majorly helped! I will make sure to send you a copy of the map when Im done if that's fine! Thanks
(04-15-2013, 03:53 AM)NaxEla Wrote: You'll need a lower case 'B'.
AddEntityCollideCallback
Thats it? that is the only problem? I feel so dumb that i missed that as well! I completely forgot about that! Thank you so much, You both majorly helped! I will make sure to send you a copy of the map when Im done if that's fine! Thanks
(04-15-2013, 03:53 AM)NaxEla Wrote: You'll need a lower case 'B'.
AddEntityCollideCallback
Thats it? that is the only problem? I feel so dumb that i missed that as well! I completely forgot about that! Thank you so much, You both majorly helped! I will make sure to send you a copy of the map when Im done if that's fine! Thanks
Yup! Those little mistakes can be easy to miss.
Just like how I did, even though I pointed out that there was a problem where it was to begin with!