The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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? :)
Projektamensia Offline
Junior Member

Posts: 16
Threads: 3
Joined: Oct 2012
Reputation: 0
#1
Can anyone help me? :)

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
12-24-2012, 09:48 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)