Frictional Games Forum (read-only)
Script not work! - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Script not work! (/thread-25700.html)



Script not work! - PewDieFan - 07-16-2014

Hello there everyonean Big Grin

Me want to make script monster spawn when u pick a key
And it will not work.

WHY???????? PLz help!!!!!


RE: Script not work! - Radical Batz - 07-16-2014

(07-16-2014, 08:06 PM)PewDieFan Wrote: Hello there everyonean Big Grin

Me want to make script monster spawn when u pick a key
And it will not work.

WHY???????? PLz help!!!!!

Could you post us your script pls so we can take a look at it?


RE: Script not work! - PewDieFan - 07-16-2014

Here its

void OnStart()
{
void MONSTAR(string &in AsItem, string &in asEntity)
{
SetEntityActive("monster_1", true);
}


What is wrong?!!!!! I wanta to only make a cstom mod, nothing much but the facking game wont allowe me too!!!!!!!!!


RE: Script not work! - Radical Batz - 07-16-2014

(07-16-2014, 08:11 PM)PewDieFan Wrote: Here its

void OnStart()
{
void MONSTAR(string &in AsItem, string &in asEntity)
{
SetEntityActive("monster_1", true);
}


What is wrong?!!!!! I wanta to only make a cstom mod, nothing much but the facking game wont allowe me too!!!!!!!!!

Ok here ya go
PHP Code:
oid OnStart()
{
    
SetEntityCallbackFunc("KEY","KEY");
}

void KEY(string &in AsItemstring &in asEntity)
{
SetEntityActive("monster_1"true);


If you have any other issues, next time post a thread on the development support if you have issues with coding!


RE: Script not work! - PewDieFan - 07-16-2014

where do i put tihs????


RE: Script not work! - Radical Batz - 07-16-2014

(07-16-2014, 08:25 PM)PewDieFan Wrote: where do i put tihs????

In an hps file! go in your custom story/maps folder/ and create a text file with the same name as your map you're making and at the very end of the text file rename .txt to .hps


RE: Script not work! - PewDieFan - 07-16-2014

It worsks !!!!!!!!! OMG FINALY WORKS!!!!!! BRO SPAWNDES Big GrinD Thank u Big Grin