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
Repeat Areas
TheGilgameshZocker Offline
Junior Member

Posts: 13
Threads: 11
Joined: Mar 2012
Reputation: 0
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
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
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
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
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.

05-17-2012, 07:15 PM

Users browsing this thread: 1 Guest(s)