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
Can anyone help me? :)
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Can anyone help me? :)

(12-24-2012, 09:48 PM)Projektamensia Wrote: Hello there guys!

We are almost finished with out school project - Setting up our own amnesia custom story.

Now I need some help, I want to know how to reset a map.
With other words:
1. I got and scriptarea inside the map
2. When the players collides with the scriptarena box I want the map to reset to the state when I entered it for the first time. Change to OnEnter() did not work.


I tried this but it did not work:
void OnStart/(OnEnter)
{
AddEntityCollideCallback("Wall2", "Dead", "Deadd", true, 0);
}

void Deadd(string &in asParent, string &in asChild, int alState)
{
FadeOut(2);
AddTimer("", 3.0f, "ChaMap2");
}

void ChaMap2(string &in asTimer)
{
ChangeMap("10_Crushwall.map", "start", "", "");
}

I would be glad if someone could help me as fast as possible since we need to be done with the Beta soon. The Beta will include an Full conversion mod!

Thank you for all the answers, Alexander.
http://www.moddb.com/mods/the-horrors-of...reenborogh

I'm not sure exactly how the whole hps is written, or what the exact error is (what's wrong), but from looking at what you gave, try this:

void OnStart()
{
AddEntityCollideCallback("Player", "Dead", "Deadd", false, 1);
}

void Deadd(string &in asParent, string &in asChild, int alState)
{
FadeOut(2);
AddTimer("", 3.0f, "ChaMap2");
}

void ChaMap2(string &in asTimer)
{
ChangeMap("10_Crushwall.map", "start", "", "");
}
(This post was last modified: 12-24-2012, 09:52 PM by Statyk.)
12-24-2012, 09:52 PM
Find


Messages In This Thread
Can anyone help me? :) - by Projektamensia - 12-24-2012, 09:48 PM
RE: Can anyone help me? :) - by Statyk - 12-24-2012, 09:52 PM
RE: Can anyone help me? :) - by Projektamensia - 12-24-2012, 09:58 PM
RE: Can anyone help me? :) - by Statyk - 12-24-2012, 10:02 PM
RE: Can anyone help me? :) - by Projektamensia - 12-24-2012, 10:04 PM
RE: Can anyone help me? :) - by Statyk - 12-24-2012, 10:08 PM
RE: Can anyone help me? :) - by Projektamensia - 12-24-2012, 10:15 PM
RE: Can anyone help me? :) - by Projektamensia - 12-25-2012, 12:51 PM



Users browsing this thread: 1 Guest(s)