Frictional Games Forum (read-only)
[SCRIPT] [SOLVED] Disappear - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] [SOLVED] Disappear (/thread-26234.html)

Pages: 1 2


[SOLVED] Disappear - Straxedix - 09-20-2014

Hello.

I have one problem,with my script.

There is no error found or anything but it just doesn't work...

Spoiler below!
PHP Code:
void OnStart()
{
SetPlayerRunSpeedMul(0);
AddEntityCollideCallback("Player""Look""LookMonsterIsComming"true1);
}
void LookMonsterIsComming(string &in asParentstring &in asChildint alState)
{
SetPlayerActive(false);
StartPlayerLookAt("Billboard_1"225"CallbackName");
AddTimer(""5"Monsters");
}

void Monsters(string &in asTimer)
{
SetEntityActive("Infected001"true);
AddTimer(""3"Monsters1");
}

void Monsters1(string &in asTimer)
{
SetEntityActive("Infected001"false);
AddTimer(""3"Monsters2");
}

void Monsters2(string &in asTimer)
{
SetEntityActive("Infected002"true);
AddTimer(""3"Monsters3");
}

void Monsters3(string &in asTimer)
{
SetEntityActive("Infected002"false);
AddTimer(""3"Monsters4");
}

void Monsters4(string &in asTimer)
{
SetEntityActive("Infected003"true);
AddTimer(""3"Monsters5");
}

void Monsters5(string &in asTimer)
{
SetEntityActive("Infected003"false);
AddTimer(""3"Monsters6");
}

void Monsters6(string &in asTimer)
{
SetEntityActive("Infected004"true);
AddTimer(""3"Monsters7");
}

void Monsters7(string &in asTimer)
{
SetEntityActive("Infected004"false);
AddTimer(""3"Monsters8");
}

void Monsters8(string &in asTimer)
{
SetEntityActive("Infected005"true);
AddTimer(""3"Monsters9");
}

void Monsters9(string &in asTimer)
{
SetEntityActive("Infected005"false);
AddTimer(""3"Monsters10");
}

void Monsters10(string &in asTimer)
{
SetEntityActive("Infected006"true);
AddTimer(""3"Monsters11");
}

void Monsters11(string &in asTimer)
{
SetEntityActive("Infected006"false);
AddTimer(""3"Monsters12");
}

void Monsters12(string &in asTimer)
{
SetEntityActive("Infected007"true);
StopPlayerLookAt();
SetPlayerActive(true);
}





RE: Disappear - Radical Batz - 09-20-2014

Hmm what is exactly not working?...

Like the whole script or just one thing?


RE: Disappear - Straxedix - 09-20-2014

Nothing is working i enter area but...Nothing...BUT WHAT IS TOYING WITH ME IS THAT IT DOESN'T SHOW ANY ERROR

EDIT:Infected is monster as you ALL know...


RE: Disappear - Radical Batz - 09-20-2014

(09-20-2014, 07:37 AM)Straxedix Wrote: Nothing is working i enter area but...Nothing...BUT WHAT IS TOYING WITH ME IS THAT IT DOESN'T SHOW ANY ERROR

EDIT:Infected is monster as you ALL know...

So you're saying when you collide with the area, the function doesn't work??

Gimme a sec to solve this for ya Wink

Edit: Are the areas & monsters called the same as the script in the lvl editor?


RE: Disappear - Straxedix - 09-20-2014

(09-20-2014, 07:39 AM)Mr. Badcatz Wrote:
(09-20-2014, 07:37 AM)Straxedix Wrote: Nothing is working i enter area but...Nothing...BUT WHAT IS TOYING WITH ME IS THAT IT DOESN'T SHOW ANY ERROR

EDIT:Infected is monster as you ALL know...

So you're saying when you collide with the area, the function doesn't work??

Gimme a sec to solve this for ya ;)

Edit: Are the areas & monsters called the same as the script in the lvl editor?

I didn't saw your edit,sorry

Yeah i checked monsters are fine and area is fine,i don't get it this is first time happening to me,btw i didn't even copy script i made it myself xD it tooks me srsly about 10 mins :D


RE: Disappear - Radical Batz - 09-20-2014

Could you sent me the map and the script pls, I could get this working for you if that's fine.
I used Addtimers on my own the first time and everything worked, so idk what's the prob.
Confused


RE: Disappear - Straxedix - 09-20-2014

I can no problem,but i think you would not load it it has a custom models...


RE: Disappear - Radical Batz - 09-20-2014

(09-20-2014, 08:06 AM)Straxedix Wrote: I can no problem,but i think you would not load it it has a custom models...

Doesn't matter, I could use placeholders instead of the custom enemies, example: grunts, brutes..etc


RE: Disappear - Straxedix - 09-20-2014

Then accept me on skype ?


RE: Disappear - Radical Batz - 09-20-2014

(09-20-2014, 08:09 AM)Straxedix Wrote: Then accept me on skype ?

No need for that if it's necessary, you could just sent them over on mediafire with a pm Smile

Hi I just loaded the map and there is no area called "look" since that's what the player is supposed to collide with! The only area I found is called "Start8"

So if that's your colliding area then try this
PHP Code:
AddEntityCollideCallback("Player""Start8""LookMonsterIsComming"true1); 

Since the game cannot find "look" since there is no area called like that which causes nothing to work at all.