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
Insanity sound
Lars Offline
Junior Member

Posts: 13
Threads: 2
Joined: Jan 2015
Reputation: 0
#11
RE: Insanity sound

(04-05-2015, 03:31 PM)Darkfire Wrote: Yes: The function that I called "CheckP" is called when you die. You see, when the monster entity is activated, the invisible/unactive one reappears after the active one vanishes. At least that is how I see it; it also may reappear when you die. Anyway, you get the point. If you want to see how FG made it in original, go to map 24_torture_choir_east.

What is wrong with this code?:

void OnStart()
{
SetEntityCallbackFunc("Note", "Spawn");
}

void Spawn(string &in asEntity, string &in type)
{
SetEntityActive("Monster", true);
ShowEnemyPlayerPosition("Monster");
CheckPoint ("C" "PlayerStartArea_2", "CheckP", "Hints"", "Normal");
}

void CheckP(string &in asName, int alCount)
{
SetEntityActive("Monster", true);
ShowEnemyPlayerPosition("Monster");
CheckPoint ("C" "PlayerStartArea_2", "CheckP", "Hints"", "Normal");
}
the error code is
main (10,60): ERR: Expected')' or ','
08-17-2015, 01:16 PM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#12
RE: Insanity sound

missing a , between "C" and "PlayerStartArea_2" in the two Checkpoint(...)
08-17-2015, 01:52 PM
Website Find
Lars Offline
Junior Member

Posts: 13
Threads: 2
Joined: Jan 2015
Reputation: 0
#13
RE: Insanity sound

(08-17-2015, 01:52 PM)jens Wrote: missing a , between "C" and "PlayerStartArea_2" in the two Checkpoint(...)


Ah thanks
08-17-2015, 02:22 PM
Find
Lars Offline
Junior Member

Posts: 13
Threads: 2
Joined: Jan 2015
Reputation: 0
#14
RE: Insanity sound

I have another question. When you leave, for example map a, which has a monster following you in it and then return to that map: map a, the monster will be gone. How do you get that monster back when entering the same map you've already been in??
(This post was last modified: 08-17-2015, 04:15 PM by Lars.)
08-17-2015, 04:14 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#15
RE: Insanity sound

Place the monster function in Void OnEnter(), so it activates every time player enters the map.
08-17-2015, 04:37 PM
Find
Lars Offline
Junior Member

Posts: 13
Threads: 2
Joined: Jan 2015
Reputation: 0
#16
RE: Insanity sound

(08-17-2015, 04:37 PM)Slanderous Wrote: Place the monster function in Void OnEnter(), so it activates every time player enters the map.

Thanks!
08-17-2015, 04:43 PM
Find




Users browsing this thread: 1 Guest(s)