Projektamensia
Junior Member
Posts: 16
Threads: 3
Joined: Oct 2012
Reputation:
0
|
RE: Can anyone help me? :)
(12-24-2012, 09:52 PM)Statyk Wrote: (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", "", "");
}
It did not work  Any other ideas?
(This post was last modified: 12-24-2012, 10:02 PM by Projektamensia.)
|
|
12-24-2012, 09:58 PM |
|