Frictional Games Forum (read-only)

Full Version: hps dosnt work in my map :S
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello , i have an problem , when i start map the intro dosn't start anyone know how to fix this ???
Map name
start.hps
start.map

anyidéa what i have to do ?
(05-11-2012, 04:07 PM)SilentHideButFine Wrote: [ -> ]Hello , i have an problem , when i start map the intro dosn't start anyone know how to fix this ???
Map name
start.hps
start.map

anyidéa what i have to do ?
make sure your start.hps isnt actually start.hps.txt
you might need to turn off that auto changefile as described on the wikisite, if this isnt the case then what you have scripted probably is something wrong with.
(05-11-2012, 04:12 PM)Rownbear Wrote: [ -> ]
(05-11-2012, 04:07 PM)SilentHideButFine Wrote: [ -> ]Hello , i have an problem , when i start map the intro dosn't start anyone know how to fix this ???
Map name
start.hps
start.map

anyidéa what i have to do ?
make sure your start.hps isnt actually start.hps.txt
you might need to turn off that auto changefile as described on the wikisite, if this isnt the case then what you have scripted probably is something wrong with.

Hmm it says it is error in the hps....


void OnStart()
{
SetPlayerLampOil(10);
AddEntityCollideCallback("Player", "Script_Area_1", "Intro", true, 1);
}

void Intro(string &in asParent, string &in asChild, int alState)
{
FadeOut(20);
SetMessage("Message", "Intro", 2);
AddTimer("", 2, "Intro1");
}
void Intro1(string &in asTimer)
{
SetMessage("Message", "Intro1", 2);
AddTimer("", 2, "Intro2");
}

void Intro2(string &in asTimer)
{
SetMessage("Message", "Intro2", 2);
AddTimer("", 2, "Intro3");
}

void Intro3(string &in asTimer)
{
SetMessage("Message", "Intro3", 2);
AddTimer("", 2, "Intro3");
}

void Intro4(string &in asTimer)
{
SetMessage("Message", "Intro4", 5);
AddTimer("", 1, "Wakeup");
}
void Wakeup(string &in asTimer)
{
FadeIn(10)
AddTimer("", 1, "Wakeup1");
}
void Wakeup1(string &in asTimer)
{
FadeOut(5)
AddTimer("", 1, "Wakeup2");
}

void Wakeup2(string &in asTimer)
{
FadeIn(3)
}
FadeIn(10)

FadeOut(5)

FadeIn(3)

they are all missing ;
Also, the AddTimer for Intro3, is calling itself, not Intro4.
( "AddTimer("", 2, "Intro3");" should be "AddTimer("", 2, "Intro4");". )
(05-12-2012, 01:19 AM)Cranky Old Man Wrote: [ -> ]Also, the AddTimer for Intro3, is calling itself, not Intro4.
( "AddTimer("", 2, "Intro3");" should be "AddTimer("", 2, "Intro4");". )
got it to work now , but how do i disable so the player can't move , dosn't find in the Dev Wiki :S
NVM fixed it
SetPlayerActive(bool abActive);