Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help hps dosnt work in my map :S
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#1
hps dosnt work in my map :S

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 ?

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-11-2012, 04:07 PM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: hps dosnt work in my map :S

(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.

(This post was last modified: 05-11-2012, 04:14 PM by Rownbear.)
05-11-2012, 04:12 PM
Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#3
RE: hps dosnt work in my map :S

(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)
}

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
05-11-2012, 10:18 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: hps dosnt work in my map :S

FadeIn(10)

FadeOut(5)

FadeIn(3)

they are all missing ;

(This post was last modified: 05-11-2012, 10:32 PM by SilentStriker.)
05-11-2012, 10:32 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#5
RE: hps dosnt work in my map :S

Also, the AddTimer for Intro3, is calling itself, not Intro4.
( "AddTimer("", 2, "Intro3");" should be "AddTimer("", 2, "Intro4");". )

Noob scripting tutorial: From Noob to Pro

05-12-2012, 01:19 AM
Find
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#6
RE: hps dosnt work in my map :S

(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

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
(This post was last modified: 05-12-2012, 01:04 PM by SilentHideButFine.)
05-12-2012, 12:58 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#7
RE: hps dosnt work in my map :S

SetPlayerActive(bool abActive);

05-12-2012, 01:00 PM
Find




Users browsing this thread: 1 Guest(s)