Frictional Games Forum (read-only)

Full Version: Script not work!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!!!!!
(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?
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!!!!!!!!!
(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!
where do i put tihs????
(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
It worsks !!!!!!!!! OMG FINALY WORKS!!!!!! BRO SPAWNDES Big GrinD Thank u Big Grin