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
Problems spawning an entity
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: Problems spawning an entity

(10-13-2011, 12:05 PM)Tanshaydar Wrote: Usually in OnStart, which runs when your map starts.
Thanks for that, but it comes up with unexpected token in Line 12 column 1


void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_brute_1" , true);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.5f, false);

}

{ <<<<----- Right here
AddEntityCollideCallback("Player" , "ScriptArea_2" , "MonsterFunc2" , true , 1);
}
void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("barrel01_20" , true);
SetEntityActive("barrel01_21" , true);
SetEntityActive("barrel01_22" , true);
SetEntityActive("barrel01_28" , true);
SetEntityActive("barrel01_29" , true);
SetEntityActive("barrel01_23" , true);
SetEntityActive("barrel01_24" , true);
SetEntityActive("barrel01_25" , true);
SetEntityActive("barrel01_27" , true);
SetEntityActive("barrel01_26" , true);
SetEntityActive("barrel01_10" , true);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0.5f, false);
}


I've looked at some tutorials in basic scripting and haven't found anything that i could use in this situation. I need some help here Smile
10-13-2011, 12:15 PM
Find


Messages In This Thread
Problems spawning an entity - by flamez3 - 10-13-2011, 11:03 AM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 11:07 AM
RE: Problems spawning an entity - by flamez3 - 10-13-2011, 11:49 AM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 12:05 PM
RE: Problems spawning an entity - by flamez3 - 10-13-2011, 12:15 PM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 12:21 PM
RE: Problems spawning an entity - by flamez3 - 10-13-2011, 12:30 PM
RE: Problems spawning an entity - by Tanshaydar - 10-13-2011, 12:54 PM



Users browsing this thread: 2 Guest(s)