Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Repeat Areas
Author Message
TheGilgameshZocker Offline
Junior Member

Posts: 13
Joined: Mar 2012
Reputation: 0
Post: #1
Repeat Areas
Hi guys, I just wanted to ask you something. I have a part in my CS, where you have to escape from 2 water lurkers, but if you die, you have to do it from the beginning. The checkpoints work, that's no problem, but the script areas don't repeat their functions, so the monsters don't spawn again. I tried things like:

void OnEnter()
{
CheckPoint("lurker_trap","PlayerStartLurker", "Reload", "Hints", "DeathWaterLurker");

}


void Reload(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Area5", true);
SetEntityActive("Area6", true);
}

I think I have a suspicion what could be wrong. I think the (string &in...-stuff is wrong. But I don't get that stuff, so it would be nice, if you could tell me, what I have to write in there, and what this (string &in asEntity...-stuff means Tongue
05-17-2012 06:16 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Posting Freak

Posts: 752
Joined: May 2011
Reputation: 21
Post: #2
RE: Repeat Areas
Got to change your "Reload" parameters to...

string &in asName, int alCount

So its like...

void Reload(string &in asName, int alCount)
05-17-2012 06:25 PM
Find all posts by this user Quote this message in a reply
Putmalk Offline
Senior Member

Posts: 275
Joined: Apr 2012
Reputation: 15
Post: #3
RE: Repeat Areas
Yeah I'd personally rename them to something like CP01 and CP02, but that's personal preference.

Be careful when making function parameters...the one you specified was for entity collide callback online. Tongue

Rapture's got it right.

Check me out at my youtube channel: http://www.youtube.com/user/Putmalk?feature=mhee

I post videos of my Amnesia creations.
05-17-2012 07:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)