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
Script Error
Ianlis Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jan 2011
Reputation: 0
#1
Script Error

Every time I try to run my map, I get a 'End error' message.
Here's my script:
void OnStart()
{
  AddEntityCollideCallback("Player" , "Monster_Spawn" , MonsterFunc1" true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
  SetEntityActive("servant_grunt_1" , true);
}
(This post was last modified: 03-22-2011, 10:32 PM by Ianlis.)
03-22-2011, 10:32 PM
Find
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#2
RE: Script Error

AddEntityCollideCallback("Player" , "Monster_Spawn" , "MonsterFunc1",  true , 1);

You missed a few , and " in that one. Fixed it for you

03-22-2011, 10:41 PM
Find
Ianlis Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jan 2011
Reputation: 0
#3
RE: Script Error

You sir, are a lifesaver.
03-22-2011, 10:57 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: Script Error

Yeah I've run into a few problems just because a " was missing...those damn little things
03-23-2011, 12:43 AM
Find




Users browsing this thread: 3 Guest(s)